new update
This commit is contained in:
@@ -1,34 +1,36 @@
|
|||||||
## 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 commit
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
## Git Log
|
5. Adding & Committing Files
|
||||||
|
|
||||||
## 
|
## 
|
||||||
|
|
||||||
@@ -38,6 +40,8 @@
|
|||||||
|
|
||||||
## 
|
## 
|
||||||
|
|
||||||
|
6. Viewing Commit Logs & Diffs
|
||||||
|
|
||||||
## Git Log (graph)
|
## Git Log (graph)
|
||||||
|
|
||||||
## 
|
## 
|
||||||
@@ -45,16 +49,3 @@
|
|||||||
## Git Diff
|
## Git Diff
|
||||||
|
|
||||||
## 
|
## 
|
||||||
|
|
||||||
## 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.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user