๐ฌ Ever feel like Git is a clingy friend who remembers everything you did, but only if you ask the right way?
Here’s your cheat sheet to talk to it without starting an argument.
๐ The Essential Git Commands (Govind Style)
1️⃣ git init
– ๐ "Starting fresh"
Like opening a brand-new notebook to write your “next big idea” (and hopefully not abandoning it after 3 pages).
2️⃣ git clone
– ๐ฅ "Copy-paste but cooler"
Imagine your friend’s recipe book. You copy it so you can cook at home without ruining their kitchen.
3️⃣ git status
– ๐ "The mirror check"
Before going out, you ask: “Do I look good?” Git tells you if you have uncommitted changes (or spinach in your teeth).
4️⃣ git add
– ๐งบ "Adding groceries to the basket"
You pick the items you want to buy but haven’t paid yet. They’re just in the cart, not in your kitchen.
5️⃣ git commit
– ๐ฆ "Seal the box"
You finally pack the stuff and label it — ready for delivery.
6️⃣ git push
– ๐ "Sending gifts"
You ship your sealed box to the central warehouse (aka remote repo).
7️⃣ git pull
– ๐ก "Downloading the gossip"
You grab all the latest updates from your friends so you’re not left out of the conversation.
8️⃣ git branch
– ๐ฟ "Create your own path"
Like making a new road in the forest — so you can explore without destroying the main highway.
9️⃣ git checkout
– ๐ "Switch lanes"
Move between different roads (branches) to reach new destinations.
๐ git merge
– ๐ค "Team hug"
Combining your work with others. Sometimes smooth, sometimes awkward with “merge conflicts” (aka arguments).
1️⃣1️⃣ git rebase
– ๐งฉ "Rewriting history"
Like telling the story of your trip but arranging the events so it sounds cooler than it really was.
1️⃣2️⃣ git stash
– ๐ "Temporary locker"
Shove your half-finished homework into your bag so you can clean your desk quickly.
1️⃣3️⃣ git log
– ๐ "Your life’s timeline"
Scroll through your entire history… and cringe at your old commits like old Facebook posts.
๐ฏ Why keep this cheat sheet?
✅ Bookmark it – Like saving your crush’s number. You’ll need it often.
✅ Share with your team – So everyone stops asking “What was that command again?”
✅ Use daily – Because Git is like coffee… skip it and things go wrong fast.
๐ก Pro Tip: Treat Git like a diary — write clear commit messages. Future-you will thank past-you.
๐ฌ Your team will also stop sending you angry emails like: “Who committed this and WHY??”
Comments if you have any questions and like govind blog and follow on LinkedIn as Govind Kr singh.