Update GIT_ASSIGNMENT.md
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
1. What is Git and Version Control
|
1. What is Git and Version Control
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -17,8 +15,6 @@ Assignment:
|
|||||||
|
|
||||||
|
|
||||||
2. Installing Git & Configuring User Info(COMPLETED)
|
2. Installing Git & Configuring User Info(COMPLETED)
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -35,8 +31,6 @@ Verify with:
|
|||||||
git config --list
|
git config --list
|
||||||
|
|
||||||
3. Initializing a Repository
|
3. Initializing a Repository
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -60,8 +54,6 @@ git status nothing added to commit but untracked files
|
|||||||
|
|
||||||
|
|
||||||
4. Working Directory, Staging, and Commits
|
4. Working Directory, Staging, and Commits
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -78,8 +70,7 @@ git commit -m "Add first notes file"
|
|||||||
git status
|
git status
|
||||||
|
|
||||||
Write down how the status changed after each command.
|
Write down how the status changed after each command.
|
||||||
-----
|
|
||||||
-----
|
|
||||||
cd git-practice-Mag go to Directory
|
cd git-practice-Mag go to Directory
|
||||||
|
|
||||||
touch notes.txt creates file
|
touch notes.txt creates file
|
||||||
@@ -101,8 +92,6 @@ git status
|
|||||||
|
|
||||||
|
|
||||||
5. Adding & Committing Files
|
5. Adding & Committing Files
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -110,8 +99,9 @@ Assignment:
|
|||||||
Stage and commit with a meaningful message.
|
Stage and commit with a meaningful message.
|
||||||
Modify todo.txt, then commit the change again.
|
Modify todo.txt, then commit the change again.
|
||||||
Run git log --oneline to see both commits.
|
Run git log --oneline to see both commits.
|
||||||
------
|
|
||||||
------
|
|
||||||
|
|
||||||
cd git-practice-Mag
|
cd git-practice-Mag
|
||||||
|
|
||||||
touch todo.txt
|
touch todo.txt
|
||||||
@@ -144,8 +134,6 @@ b8c2503 (HEAD -> master) Add new task
|
|||||||
|
|
||||||
|
|
||||||
6. Viewing Commit Logs & Diffs
|
6. Viewing Commit Logs & Diffs
|
||||||
-----
|
|
||||||
-----
|
|
||||||
|
|
||||||
Assignment:
|
Assignment:
|
||||||
|
|
||||||
@@ -158,8 +146,11 @@ Assignment:
|
|||||||
Edit notes.txt and check the changes with git diff before staging.
|
Edit notes.txt and check the changes with git diff before staging.
|
||||||
|
|
||||||
Stage and commit, then run git diff commit1 commit2 to see what changed between commits.
|
Stage and commit, then run git diff commit1 commit2 to see what changed between commits.
|
||||||
------
|
|
||||||
------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Magdel@LAPTOP-NS5FVUS9 MINGW64 ~/git-practice-Mag (master)
|
Magdel@LAPTOP-NS5FVUS9 MINGW64 ~/git-practice-Mag (master)
|
||||||
$ git log
|
$ git log
|
||||||
commit b8c2503d1770ddf362d4862ec5f7095204d35015 (HEAD -> master)
|
commit b8c2503d1770ddf362d4862ec5f7095204d35015 (HEAD -> master)
|
||||||
|
|||||||
Reference in New Issue
Block a user