|
1 | 1 | # Homework
|
2 | 2 |
|
| 3 | +### Get git ready to work on homework |
| 4 | + |
| 5 | +#### Starting with nothing to commit |
| 6 | +Using the `hyf-homework` repo |
| 7 | + |
| 8 | +In the terminal run `git status` |
| 9 | + |
| 10 | +If there are changes that have not been committed, figure out what to do with those changes |
| 11 | +- Should they be committed to another branch? |
| 12 | +- Should they be committed to `master`? |
| 13 | +- Should they be discarded? |
| 14 | + |
| 15 | +When you have figured out what to do with the changes and fixed those. Write `git status` again. If it says `nothing to commit, working tree clean`. Then you are ready to create the branch for this weeks homework. |
| 16 | + |
| 17 | +#### Creating the branch |
| 18 | +Using the `hyf-homework` repo write this command |
| 19 | + |
| 20 | +`git checkout -b javascript/javascript1/week2` |
| 21 | + |
| 22 | +This will create and checkout the branch so you are ready make commits to it. |
| 23 | + |
| 24 | +[this video](https://www.youtube.com/watch?v=feyBVDhFQuk) can help |
| 25 | + |
3 | 26 | ## Why should i even do this homework?
|
4 | 27 | Functions and conditions are some of the basic building blocks of javascript. Functions ensure that we dont repeat ourselves when writing code. Conditions ensures that we can handle different cases when programming.
|
5 | 28 |
|
@@ -180,7 +203,7 @@ Go and try out this cool game: [roverjs.com](http://roverjs.com), written by one
|
180 | 203 |
|
181 | 204 | Watch [this video](https://www.youtube.com/watch?v=feyBVDhFQuk) for a more detailed go-through of how to hand in homework!
|
182 | 205 |
|
183 |
| -- Create a new branch called `javascript/javascript1/week2` |
| 206 | +- Use the branch called `javascript/javascript1/week2` |
184 | 207 | - Add all your changes to this branch in the `javascript/javascript1/week2` folder.
|
185 | 208 | - Create a pull request using the `javascript/javascript1/week2` branch
|
186 | 209 | - Wait for mentor feedback
|
|
0 commit comments