3.0 KiB
🚀 Git Assignment – My Version Control Journey
🛠 Step 1: Verifying Git Installation
📌 First step was making sure Git was installed and working fine.
✅ The output displayed the installed Git version.
📂 Step 2: Checking Repository Status
👀 Next, I checked the repo to see if there were pending changes.
🔎 Git shows tracked, untracked, and staged files.
➕ Step 3: Moving Files to Staging
✨ I noticed some modifications and added them with git add
.
🗂 Files are now ready to be saved in the next commit.
📝 Step 4: Reviewing Commit History
📖 Every commit is part of the project’s story, so I reviewed mine.
🕒 Shows commit messages, author names, and dates.
🔹 Step 5: Simplified Commit Log
👾 To avoid too much detail, I used git log --oneline
.
⚡ A compact and easy-to-read commit history.
🌳 Step 6: Visualizing History with Graph
🎨 History is better when visualized, so I used graph mode.
🌿 Displays branches and merges clearly.
🔍 Step 7: Checking File Changes
🖋 Before committing, I inspected changes with git diff
.
🔑 Shows exact line changes inside files.
🆚 Step 8: Comparing Two Versions
⚔️ To see what changed between two commits, I compared them.
📌 Helps track project progress over time.
🌿 Step 9: Working with Branches
🔀 I explored branches to work independently without touching main code.
🌱 Branches allow experimentation safely.
📥 Step 10: Cloning a Repository
🛰 I downloaded a project from remote using git clone
.
📂 A full copy is now available locally.
📥 Step 11: Pulling Remote Updates
🛰 To stay up to date, I fetched and merged with git pull origin
.
🌐 Step 12: Checking Remote Connections
🔗 I verified linked remote repositories with git remote -v
.
🚫 Step 13: Using .gitignore
📄 Added a .gitignore
file to skip tracking unnecessary stuff.
✨ Summary
- ✅ Git Version Check – Verified installation.
- ✅ Git Status – Checked repository state.
- ✅ Git Add – Staged changes.
- ✅ Git Log – Viewed history.
- ✅ Git Log (oneline/graph) – Short + visual log.
- ✅ Git Diff – Compared file changes.
- ✅ Git Branch – Created/checked branches.
- ✅ Git Clone – Cloned repo locally.
- ✅ Git Pull – Pulled updates.
- ✅ Git Remote – Checked remotes.
- ✅ Git Ignore – Excluded files.