Git cheatsheet — common workflows
A searchable quick reference for everyday Git commands — commit, branch, merge, stash and more. It runs in your browser (0 uploads, works offline).
How to use it
- Enter or paste your input above.
- The result appears live on your device.
- Copy or Download it.
FAQ
How do I commit (or push) in Git?
git commit -m "message" commits staged changes; git push sends them to the remote. Search any command on this page and what it does appears instantly, offline, covering the commands you use daily.
How do I create and switch to a new branch?
git checkout -b <name> creates a branch and switches to it, or git switch -c <name> with the newer command. Both are in the cheatsheet with notes.
Is anything uploaded?
No — the reference is bundled and searched on your device; it works offline.
How do I undo a commit safely?
git revert <commit> creates a new commit that undoes the change, which is safe on shared branches — unlike git reset --hard, which discards history.
Limits
Covers everyday commands, not every flag or advanced workflow. See the Git docs for the full reference.
Related
The Markdown and regex cheatsheets are companions; the other developer tools handle encoding and formatting.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.