“Now you control branches, history, and collaboration.”
flowchart LR
A[Feature Branch] --> B[Commit]
B --> C[Rebase/Merge]
C --> D[Push]
git switch -c feature-x
git branch -d feature-x
git switch -Merge = combine history (safe)
Rebase = clean history (linear)
graph LR
A --> B --> C
B --> D --> E
<<<<<<< HEAD
=======
>>>>>>> branch
# edit file
git add .
git commitgit reset --soft HEAD~1
git reset HEAD~1
git revert <commit>git stash
git stash pop
git stash listgit log --oneline --graph --all
git diff
git show <commit>git pull --rebase
git push --force-with-leasegit switch -c feature
git add .
git commit -m "feature"
git pull --rebase
git push❌ force push blindly
❌ ignoring conflicts
❌ large commits
flowchart TD
A[Problem] --> B[Check status]
B --> C[Check log]
C --> D[Fix]
You can collaborate and manage real workflows
Fix typo in structure:
intermidiate-cheatsheet.md ❌
intermediate-cheatsheet.md ✅
flowchart LR
A[Beginner Sheet] --> B[Clarity]
B --> C[Intermediate Sheet]
C --> D[Control]
D --> E[Mastery 🚀]
“Cheat sheets don’t replace learning — they make recall instant.”