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

Skip to content

Commit a0e60e4

Browse files
committed
homework get started git
1 parent a753943 commit a0e60e4

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

javascript1/week1/homework.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@
44
## Step 1: Before you start with the homework:
55
1. Watch: <a href="https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro" target="_blank">What is programming</a> Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
66

7+
### Get git ready to work on homework
8+
9+
#### Starting with nothing to commit
10+
Using the `hyf-homework` repo
11+
12+
In the terminal run `git status`
13+
14+
If there are changes that have not been committed, figure out what to do with those changes
15+
- Should they be committed to another branch?
16+
- Should they be committed to `master`?
17+
- Should they be discarded?
18+
19+
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.
20+
21+
#### Creating the branch
22+
Using the `hyf-homework` repo write this command
23+
24+
`git checkout -b javascript/javascript1/week1`
25+
26+
This will create and checkout the branch so you are ready make commits to it.
27+
28+
[this video](https://www.youtube.com/watch?v=feyBVDhFQuk) can help
29+
730
## Why should I do this homework?
831
> One must be able to crawl before understanding the true nature of Javascript - Albert Einstein
932
@@ -98,11 +121,7 @@ Use the `hyf-homework` repo and find the folder on your computer that contains t
98121

99122
-----
100123

101-
Create a new branch called `javascript/javascript1/week1` and checkout this branch
102-
103-
```
104-
git checkout -b javascript/javascript1/week1
105-
```
124+
Using the branch called `javascript/javascript1/week1`
106125

107126
-----
108127

javascript1/week2/homework.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Homework
22

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+
326
## Why should i even do this homework?
427
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.
528

@@ -180,7 +203,7 @@ Go and try out this cool game: [roverjs.com](http://roverjs.com), written by one
180203

181204
Watch [this video](https://www.youtube.com/watch?v=feyBVDhFQuk) for a more detailed go-through of how to hand in homework!
182205

183-
- Create a new branch called `javascript/javascript1/week2`
206+
- Use the branch called `javascript/javascript1/week2`
184207
- Add all your changes to this branch in the `javascript/javascript1/week2` folder.
185208
- Create a pull request using the `javascript/javascript1/week2` branch
186209
- Wait for mentor feedback

0 commit comments

Comments
 (0)