Cheat Sheets
🌿
Git Commands
Essential Git commands for daily development
#Basic Operations
git initInitialize a new repositorygit clone <url>Clone a remote repositorygit statusShow working tree statusgit add .Stage all changesgit commit -m 'msg'Commit staged changesgit push origin mainPush to remotegit pullFetch and merge from remote#Branching
git branchList all branchesgit branch <name>Create a new branchgit checkout -b <name>Create and switch to branchgit merge <branch>Merge branch into currentgit rebase <branch>Rebase onto branchgit branch -d <name>Delete a branch#Advanced
git stashStash current changesgit stash popApply stashed changesgit log --onelineView compact commit historygit reset --hard HEAD~1Undo last commitgit cherry-pick <hash>Apply specific commitgit bisect startStart binary search for bug