Git Command Cheatsheet
Searchable reference of everyday Git commands for branching, undoing and inspecting history.
git initStart a new repositorygit clone <url>Clone a remote repositorygit remote -vList remotesgit remote add origin <url>Add a remotegit status -sbShort status with branch infogit add -pStage changes hunk by hunkgit commit -m "msg"Commit staged changesgit commit --amend --no-editAdd to the last commitgit push -u origin HEADPush and track current branchgit pull --rebasePull and replay local commitsgit switch -c feature/xCreate and switch to a branchgit switch mainSwitch branchgit branch -d feature/xDelete merged branchgit merge --no-ff feature/xMerge with a merge commitgit rebase mainRebase onto maingit cherry-pick <sha>Apply one commit elsewheregit restore <file>Discard working changesgit restore --staged <file>Unstage a filegit reset --soft HEAD~1Undo last commit, keep changesgit reset --hard origin/mainForce local to match remotegit revert <sha>Create an inverse commitgit reflogFind lost commitsgit stash push -m "wip"Stash work in progressgit stash popRestore stashed workgit log --oneline --graph --allVisual commit graphgit diff --stagedDiff staged changesgit blame -L 10,20 <file>Who changed these linesgit show <sha>Inspect a commitgit bisect startBinary-search a bad commitgit clean -fdDelete untracked files & dirsgit gc --prune=nowGarbage collectgit fetch --pruneDrop deleted remote branchesgit rm --cached <file>Stop tracking a fileHow to use Git Command Cheatsheet
- 1Open Git Command Cheatsheet
Open the git command cheatsheet on Easutil — there is nothing to install and no account to create.
- 2Add your input
Paste or type your code or payload into the input area, or adjust the options shown above the result.
- 3Review the output
Git Command Cheatsheet updates the formatted result instantly as you type, so you can iterate without pressing a button.
- 4Copy or download
Use the Copy button to grab the result, or download it where a file export is offered.
Common use cases
- Quickly process your code or payload while debugging
- Share a clean, readable result with a teammate
- Avoid pasting sensitive data into an unknown online service
Git Command Cheatsheet FAQ
Is Git Command Cheatsheet free to use?
Yes. Git Command Cheatsheet is completely free on Easutil, with no signup, no usage limits and no watermarks.
Is my data private when I use Git Command Cheatsheet?
Yes. Git Command Cheatsheet runs entirely in your browser using JavaScript — your input is never uploaded to a server or stored anywhere.
Do I need to install anything to use Git Command Cheatsheet?
No. It works in any modern browser on desktop and mobile — Chrome, Firefox, Safari and Edge.
Does Git Command Cheatsheet work offline?
Once the page has loaded, git command cheatsheet keeps working without a network connection because all the processing happens client-side.
Looking for something similar? Browse all developer tools on Easutil →