Git Cheatsheet

How to use this Git cheatsheet

  1. Browse by category, or search for a keyword.
  2. Each command shows a short description of what it does.
  3. Click any command to copy it to your clipboard.

Why keep a Git reference handy?

Git has dozens of commands and flags used only occasionally — a quick reference saves time compared to searching documentation every time you need to undo a commit or resolve a merge.

Are these commands safe to run on any repository?

Most are safe, but commands involving reset, force push, or history rewriting can permanently discard changes — always double-check you're on the right branch and understand a command before running it on a shared repository.

Does this cover every Git command?

No, this covers the most commonly used commands for everyday work. For the full command reference, Git's own documentation (git help) is the authoritative source.