Compare commits
4 Commits
fcfd1c26e5
...
feature1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1242b4695c | ||
|
|
58e6514679 | ||
|
|
9f6b5d6576 | ||
|
|
c6a2c7a21c |
@@ -1,52 +1,51 @@
|
|||||||
## Git Assignment
|
## Git Assignment
|
||||||
|
|
||||||
## Git Version Check
|
## 1. What is Git and Version Control
|
||||||
|
|
||||||
|
1. Git helps multiple people work on the same files without losing each other's changes or creating a mess.
|
||||||
|
2. Four students writing a group essay where each person writes different sections, but sometimes they need to edit the same paragraphs.
|
||||||
|
3. Email creates confusion with multiple file versions and lost work, while Git tracks every change and lets everyone work together safely.
|
||||||
|
|
||||||
|
## 2. Installing Git & Configuring User Info
|
||||||
|
|
||||||
## 
|
## 
|
||||||
|
|
||||||
## Git Status
|
3. Initializing a Repository
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Git list
|
4. Working Directory, Staging, and Commits
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Git Add
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Git Log
|

|
||||||
|
|
||||||
---
|
--
|
||||||
|
|
||||||
|
5. Adding & Committing Files
|
||||||
|
|
||||||
|
## 
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Git Log (oneline)
|
## Git Log (oneline)
|
||||||
|
|
||||||
---
|
## 
|
||||||
|
|
||||||
|
6. Viewing Commit Logs & Diffs
|
||||||
|
|
||||||
## Git Log (graph)
|
## Git Log (graph)
|
||||||
|
|
||||||
---
|
## 
|
||||||
|
|
||||||
## Git Diff
|
## Git Diff
|
||||||
|
|
||||||
---
|
## 
|
||||||
|
|
||||||
## Git Diff (commit1 vs commit2)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Notes:
|
|
||||||
|
|
||||||
1. **Git Version Check** – Confirms the installed Git version.
|
|
||||||
2. **Git Status** – Shows the current working tree status, including staged/unstaged changes.
|
|
||||||
3. **Git Add** – Adds changes to the staging area, preparing them for commit.
|
|
||||||
4. **Git Log** – Displays commit history.
|
|
||||||
5. **Git Log (oneline/graph)** – Shows simplified or visual commit history.
|
|
||||||
6. **Git Diff** – Shows changes between commits or working directory states.
|
|
||||||
|
|||||||
BIN
image-5.png
Normal file
BIN
image-5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
image-6.png
Normal file
BIN
image-6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
image-7.png
Normal file
BIN
image-7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
BIN
image-8.png
Normal file
BIN
image-8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
image-9.png
Normal file
BIN
image-9.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user