new update

This commit is contained in:
Asaph
2025-08-20 16:53:34 +05:30
parent 58e6514679
commit 1242b4695c

View File

@@ -1,34 +1,36 @@
## 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
## ![alt text](image.png)
## Git Status
3. Initializing a Repository
![alt text](image-1.png)
---
## Git list
4. Working Directory, Staging, and Commits
![alt text](image-2.png)
---
## Git Add
![alt text](image-3.png)
---
## Git commit
![alt text](image-4.png)
--
## Git Log
5. Adding & Committing Files
## ![alt text](image-5.png)
@@ -38,6 +40,8 @@
## ![alt text](image-6.png)
6. Viewing Commit Logs & Diffs
## Git Log (graph)
## ![alt text](image-8.png)
@@ -45,16 +49,3 @@
## Git Diff
## ![alt text](image-9.png)
## Git Diff (commit1 vs commit2)
---
### Notes:
1. **Git Version Check** Displays the currently installed Git version on your system.
2. **Git Status** Shows the current working tree status, including staged/unstaged changes.
3. **Git Add** Stages file changes, moving them into the index ready for the next commit.
4. **Git Log** Displays commit history.
5. **Git Log (oneline/graph)** Shows simplified commit history.
6. **Git Diff** changes between commits or working directory states.