Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21ae769

Browse files
authored
Update hand-in-homework-guide.md
Update hand in guide so that students push only their homework
1 parent 670d843 commit 21ae769

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

hand-in-homework-guide.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ ONE TIME ONLY (START OF EVERY MODULE)
1717
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
1818
4. On your local machine, navigate to the folder using the command line
1919
5. Make sure you've cloned it correctly by running `git status` from the command line.
20+
6. This homework repository is a little special, have a look through the README how it all works!
2021

2122
EVERY WEEK
2223

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:
24+
1. Do a `git pull` on your main branch to get the latest version.
25+
2. 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`. Don't forget to checkout this branch after creating it.
26+
3. Make your homework!
27+
4. Once you're finished, add your homework to a commit. Make sure you *only* commit your homework files and nothing else. You can use `git add -p` if you only want to add a couple files. You can always check what is happening with the `git status` command (as one of our mentors always says, it is the console.log of git!).
28+
5. Create the commit (`git commit`). Make the commit message meaningful, for example `finished project for homework week1`.
29+
6. Push the branch to your forked repository
30+
7. 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
31+
8. Give the pull request a title in the following format:
2932

3033
```markdown
3134
Homework week 1 <Your name>
3235
```
3336

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!
37+
7. Submit the pull request from your forked repository branch into the `main` branch
3638

3739
If you have any questions or if something is not entirely clear ¯\\\_(ツ)\_/¯, please ask/comment on Slack!

0 commit comments

Comments
 (0)