All tools

🌿 Git Cheat Sheet

Cheat Sheets

The 24 commands that cover 95% of daily git use — every row copyable

The 24 commands that cover 95% of daily git use

git statusshow what changed and what's staged
git add .stage everything in the current folder
git commit -m "msg"save a snapshot with a message
git pushupload commits to the remote
git pulldownload and merge remote changes
git clone URLcopy a repo to your machine
git branch namecreate a new branch
git checkout nameswitch to a branch
git switch -c namecreate and switch in one go
git merge namemerge a branch into the current one
git log --onelinecompact history view
git diffsee unstaged changes
git restore filediscard local changes to a file
git reset --soft HEAD~1undo last commit, keep changes
git stashshelve changes temporarily
git stash poprestore shelved changes
git remote -vlist remotes
git tag v1.0mark a release point
git blame filewho last touched each line
git cherry-pick shacopy one commit over
git rebase mainreplay your branch onto main
git fetchdownload remote changes without merging
git clean -fddelete untracked files (careful!)
git help commandmanual for any command

One of 1095+ instant kits on SlashAI — free forever, nothing uploaded, no account.