About 90 commonly needed git commands, grouped by what you are trying to do. Search by command or by intent, for example “undo commit”, “delete branch”, “stash untracked” or “who changed”, or filter to a single group. Each command has a copy button.

The list sticks to modern porcelain where it exists: git switch and git restore instead of overloaded git checkout, --force-with-lease instead of --force, and git push -u to set upstream. Placeholders appear in angle brackets, like <branch> and <commit>.

Commands marked destructive (reset --hard, clean -fd) throw away uncommitted work and cannot be undone with git itself. Run git clean -nd first to preview, and remember that git reflog can usually recover commits you thought were lost after a bad reset or rebase.