|
| 1 | +# How to hand in homework |
| 2 | + |
| 3 | +In this module you'll submit your homework only using GIT and GitHub. |
| 4 | + |
| 5 | +1. [GitHub](https://www.github.com/HackYourFuture/JavaScript) |
| 6 | + |
| 7 | +## 1. GitHub homework guide |
| 8 | + |
| 9 | +<a href="http://www.youtube.com/watch?feature=player_embedded&v=CpYARPYGQU8" target="_blank"><img src="./assets/submit-homework.png" width="400" height="250" alt="HYF Video" /></a> |
| 10 | + |
| 11 | +Watch the video (by clicking the image) or go through the following walk-through to learn how to submit your homework: |
| 12 | + |
| 13 | +ONE TIME ONLY (START OF EVERY MODULE) |
| 14 | + |
| 15 | +1. Create a [fork](https://help.github.com/en/articles/fork-a-repo) of the homework module repository. For JavaScript (as well as the next 2 modules), the homework module repository is `https://www.github.com/HackYourHomework/Homework-classXX` where XX is your class number. You do this by using the `fork` option on the top right |
| 16 | +2. Navigate to the URL of the cloned repository (it should be in your personal GitHub account, under "repositories") |
| 17 | +3. Clone the repository, using SSH, to your local machine. You can do this by typing in `git clone <git url>` in the command line |
| 18 | +4. On your local machine, navigate to the folder using the command line |
| 19 | +5. Make sure you've cloned it correctly by running `git status` from the command line. |
| 20 | + |
| 21 | +EVERY WEEK |
| 22 | + |
| 23 | +1. Create a new branch for each week you have homework. For example, for the week 1 homework for JavaScript create a branch called `YOUR_NAME-w1-JavaScript` |
| 24 | +2. Inside the correct week folder, create another folder called `homework`. Make your homework files in there, while on the correct branch |
| 25 | +3. Once you're finished, add and commit everything. Make the commit message meaningful, for example `finished project for homework week1` |
| 26 | +4. Push the branch to your forked repository |
| 27 | +5. On the GitHub page of your forked repository, click on the `create pull request` button. Make sure the `base repository` is your teacher's repository, on branch master |
| 28 | +6. Give the pull request a title in the following format: |
| 29 | + |
| 30 | +```markdown |
| 31 | +Homework week 1 <Your name> |
| 32 | +``` |
| 33 | + |
| 34 | +7. Submit the pull request from your forked repository branch into the `master` branch |
| 35 | +8. Do a little victory dance because you did it! Good job! |
| 36 | + |
| 37 | +If you have any questions or if something is not entirely clear ¯\\\_(ツ)\_/¯, please ask/comment on Slack! |
0 commit comments