Add git branch and clone in md file
This commit is contained in:
@ -1,60 +1,120 @@
|
||||
<!-- @format -->
|
||||
|
||||
# Git Assignment
|
||||
# 🌟 Git Assignment – My Version Control Journey
|
||||
|
||||
## Git Version Check
|
||||
---
|
||||
|
||||
## 🛠 Step 1: Checking Git Version
|
||||
|
||||
📌 _Before starting, I made sure Git was installed and working properly._
|
||||
|
||||

|
||||
|
||||
✅ Output confirms the installed version of Git.
|
||||
|
||||
---
|
||||
|
||||
## Git Status
|
||||
## 📂 Step 2: Checking Git Status
|
||||
|
||||
👀 _Time to check the working directory status… are there any changes?_
|
||||
|
||||

|
||||
|
||||
🔎 Git shows which files are staged, unstaged, or untracked.
|
||||
|
||||
---
|
||||
|
||||
## Git Add
|
||||
## ➕ Step 3: Adding Files to Staging
|
||||
|
||||
✨ _Changes spotted! Let’s move them to the staging area with_ `git add`.
|
||||
|
||||

|
||||
|
||||
🗂 Files are now ready to be committed.
|
||||
|
||||
---
|
||||
|
||||
## Git Log
|
||||
## 📝 Step 4: Viewing Commit History
|
||||
|
||||
📖 _Every project tells a story… here’s mine!_
|
||||
|
||||

|
||||
|
||||
🕒 A detailed timeline of commits, complete with author, date, and messages.
|
||||
|
||||
---
|
||||
|
||||
## Git Log (oneline)
|
||||
## 🔹 Step 5: Compact History (Oneline)
|
||||
|
||||
👾 _Too much detail? Let’s simplify it with_ `git log --oneline`.
|
||||
|
||||

|
||||
|
||||
⚡ Quick and clean history view.
|
||||
|
||||
---
|
||||
|
||||
## Git Log (graph)
|
||||
## 🌳 Step 6: Visual History (Graph)
|
||||
|
||||
🎨 _Why read history when you can see it?_
|
||||
|
||||

|
||||
|
||||
🌿 Branches and merges, beautifully visualized.
|
||||
|
||||
---
|
||||
|
||||
## Git Diff
|
||||
## 🔍 Step 7: Checking Differences
|
||||
|
||||
🖋 _Curious about what exactly changed? Enter_ `git diff`.
|
||||
|
||||

|
||||
|
||||
🔑 Shows line-by-line modifications before committing.
|
||||
|
||||
---
|
||||
|
||||
## Git Diff (commit1 vs commit2)
|
||||
## 🆚 Step 8: Comparing Two Commits
|
||||
|
||||
⚔️ _What changed between two versions of history?_
|
||||
|
||||

|
||||
|
||||
📌 Helps track evolution between commits.
|
||||
|
||||
---
|
||||
|
||||
### Notes:
|
||||
## 🌿 Step 9: Exploring Branches
|
||||
|
||||
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.
|
||||
🔀 _Time to branch out!_
|
||||
|
||||

|
||||
|
||||
🌱 Branches allow experimenting without breaking the main code.
|
||||
|
||||
---
|
||||
|
||||
## 📥 Step 10: Cloning a Repository
|
||||
|
||||
🛰 _Finally, bringing a repo from remote to local with_ `git clone`.
|
||||
|
||||

|
||||
|
||||
📂 A complete copy of the project, ready to explore and edit.
|
||||
|
||||
---
|
||||
|
||||
# ✨ Wrap-Up Notes
|
||||
|
||||
1. ✅ **Git Version Check** – Confirmed installation.
|
||||
2. ✅ **Git Status** – Checked working tree status.
|
||||
3. ✅ **Git Add** – Staged changes for commit.
|
||||
4. ✅ **Git Log** – Viewed commit history.
|
||||
5. ✅ **Git Log (oneline/graph)** – Simplified and visual history.
|
||||
6. ✅ **Git Diff** – Compared changes in files and commits.
|
||||
7. ✅ **Git Branch** – Managed branches.
|
||||
8. ✅ **Git Clone** – Pulled repo from remote.
|
||||
|
||||
---
|
||||
|
||||
💡 _Git isn’t just a tool — it’s a time machine for your code!_ 🚀
|
||||
|
BIN
branch.png
Normal file
BIN
branch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
Reference in New Issue
Block a user