What the Git command reference does
Git has hundreds of commands and flags, and nobody remembers all of them. This searchable reference covers 50+ of the ones you actually reach for — organised by category, with fuzzy search so you can find "undo last commit" or "discard changes" by describing what you want, and one-click copy to grab the exact command.
How to find a command
- Search by intent ("stash", "rebase", "amend") or browse by category.
- Read what the command does before you run it.
- Copy it and adapt the placeholders to your branch or file.
The commands people forget
Everyday git is muscle memory; it's the rescue commands that slip — undoing the
last commit without losing work (git reset --soft HEAD~1),
discarding local changes to a file (git checkout -- file),
un-staging (git restore --staged file), or recovering a lost commit
with git reflog. Having them one search away turns a panic moment
into a copy-paste.