Files
git-practice-Vipin/GIT_ASSIGNMENT.md
2025-08-28 09:56:17 +05:30

148 lines
3.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- @format -->
# 🌟 Git Assignment My Version Control Journey
---
## 🛠 Step 1: Checking Git Version
📌 _Before starting, I made sure Git was installed and working properly._
![Git version check](gitversion.png)
✅ Output confirms the installed version of Git.
---
## 📂 Step 2: Checking Git Status
👀 _Time to check the working directory status… are there any changes?_
![Git status](gitstatus.png)
🔎 Git shows which files are staged, unstaged, or untracked.
---
## Step 3: Adding Files to Staging
_Changes spotted! Lets move them to the staging area with_ `git add`.
![Git add](gitadd.png)
🗂 Files are now ready to be committed.
---
## 📝 Step 4: Viewing Commit History
📖 _Every project tells a story… heres mine!_
![Git log](gitlog.png)
🕒 A detailed timeline of commits, complete with author, date, and messages.
---
## 🔹 Step 5: Compact History (Oneline)
👾 _Too much detail? Lets simplify it with_ `git log --oneline`.
![Git log oneline](gitoneline.png)
⚡ Quick and clean history view.
---
## 🌳 Step 6: Visual History (Graph)
🎨 _Why read history when you can see it?_
![Git log graph](loggraph.png)
🌿 Branches and merges, beautifully visualized.
---
## 🔍 Step 7: Checking Differences
🖋 _Curious about what exactly changed? Enter_ `git diff`.
![Git diff](gitdiff.png)
🔑 Shows line-by-line modifications before committing.
---
## 🆚 Step 8: Comparing Two Commits
⚔️ _What changed between two versions of history?_
![Git diff between two commits](compare.png)
📌 Helps track evolution between commits.
---
## 🌿 Step 9: Exploring Branches
🔀 _Time to branch out!_
![Git branch](branch.png)
🌱 Branches allow experimenting without breaking the main code.
---
## 📥 Step 10: Cloning a Repository
🛰 _Finally, bringing a repo from remote to local with_ `git clone`.
![Git clone](clone.png)
📂 A complete copy of the project, ready to explore and edit.
---
## 📥 Step 11: Pulling the Code
🛰 _Fetched and merged updates from the remote repository using_ `git pull origin`.
![Git pull](pull.png)
---
## 🌐 Step 12: Checking Remote
🔗 _Verified remote repository connections with_ `git remote -v`.
![Git remote](remote.png)
---
## 🚫 Step 13: Ignore File
📄 _Added a `.gitignore` file to exclude unnecessary files like logs or temporary data._
![Git ignore](ignore.png)
---
# ✨ 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.
9.**Git Pull** Synced changes from remote.
10.**Git Remote** Checked repository connections.
11.**Git Ignore** Excluded unnecessary files.
---
💡 _Git isnt just a tool — its a time machine for your code!_ 🚀