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

Skip to content

Commit b24f0b3

Browse files
committed
Homework-week1 including recap
1 parent b50eeec commit b24f0b3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Week1/homework-week1.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Hi, We have made the homework at the class.
2+
Me and @mehmet mehmetekinci worked together on this project and the result is shown on the following link:
3+
https://github.com/rabrad/animals
4+
5+
Recap:
6+
7+
1. admin creates a new repository on github called **animals**.
8+
Done by me as admin.
9+
10+
2. admin adds a file called “zoo.txt” with some animals generally found in a zoo.
11+
From CLI:
12+
mkdir animals
13+
touch zoo.txt
14+
echo "Lion" "Zepra" "heppo" > zoo.txt
15+
16+
3. admin commits and pushes the changes (in master branch).
17+
git add .
18+
git commit -m "Made file zoo.txt"
19+
20+
4. user forks the repository created by admin and bring it to their machine (covered during classwork).
21+
Done by user.
22+
forks the repository.
23+
And from CLI:
24+
git cloan http://....
25+
26+
5. user makes a new branch called user-dev.
27+
git branch user-dev
28+
29+
6. user adds another file called “pets.txt” with some animals generally found in a home.
30+
touch pets.txt
31+
echo "cat" "dog" "horse" > pets.txt
32+
33+
7. user commits and pushes his branch to remote.
34+
git add .
35+
git commit -m "Made file pets.txt"
36+
37+
8. user creates a pull request(PR) to merge changes from user's _user-dev_ branch to admin's _master_ branch.
38+
Done by user on github.
39+
40+
9. admin reviews the pull request and approves and merges changes.
41+
Done by admin on github

0 commit comments

Comments
 (0)