Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

publishing Week2 homework #34

Closed
neveenatik opened this issue Jun 19, 2018 · 2 comments
Closed

publishing Week2 homework #34

neveenatik opened this issue Jun 19, 2018 · 2 comments

Comments

@neveenatik
Copy link

According to week2 homework instruction. students weren't able to publish the homework on github pages. that's because github publishes only from master or a branch called gh-pages.
so there is a solution by letting students make a branch for each week from master (week1, week2, week3) and this extra branch (gh-pages) need to be created for publishing purpose only.
But then homework needs to be added twice once in week branch and once in gh-pages.
My question is: is this needed?
Making a branch for each week if yes then the solution is to submit homework twice. If not then homework can be submitted to one branch gh-pages that gets updated each week.

@remarcmij
Copy link
Contributor

Hi Neveen, you should create a PR for your homework against your week1, week2 or week3 branch. The gh-pages branch is not related to homework submission; it is just a handy way to show your homework in action. (When writing the assignment I had not taken the gh-pages option into account.)

Since the JS3 homework is about a single application that implements the same functionality in more advanced ways throughout the three weeks, you can always publish your latest version through gh-pages. (Note that a GitHub branch is just a pointer to a specific commit.) If anyone wants to know details about the versions of previous weeks they can always look at the branches in the repo or clone your repo and run the different versions locally. So when you have committed your latest changes into your homework branch I would just merge that branch into the gh-pages branch for publication purposes.

Does this address your issue?

@neveenatik
Copy link
Author

Hi Jim, Yes indeed so everyweek I merge the branch I made for that week with gh-pages instead of adding homework on both branches.

@gijscor gijscor closed this as completed Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants