Git Command Reference
A searchable directory of ~100 common Git commands grouped by category — setup, staging, branching, remotes, history, undo, stashing, tagging, submodules, worktrees and maintenance — each with a one-line description and one-click copy. In your browser, free.
A searchable directory of common Git commands. Everything runs in your browser from a built-in reference — nothing is sent to the server.
Replace placeholders like <branch>, <file>, <commit>, <url> and <name> with your own values.
| Command | Description | Category |
|---|
About Git Command Reference
The Git Command Reference is a searchable directory of roughly 100 everyday Git commands, each with a one-line description and a one-click copy button. Twelve categories organize the workflow end to end: setup and config, creating and cloning, staging and snapshots, branching and merging, remotes and sync, history and inspection, undo and rewrite, stashing, tagging, submodules, worktrees and maintenance.
Search matches the command itself, a flag or the description, so “rebase”, “--amend” and “unstage” all land on the right row. That makes it fastest for the commands you use rarely but need exactly right — recovering with reflog, pruning stale remote branches or undoing the last commit without losing the changes.
Commands are written with placeholders like <branch>, <file>, <commit> and <url>; swap in your own values after copying. The undo and rewrite category deserves a careful read before pasting — commands like reset --hard discard work by design. The whole directory runs in your browser.
How to use Git Command Reference
- Search by command (commit), flag (--amend) or plain description (undo last commit).
- Or browse by category — from Setup & Config through Branching, Remotes, Undo & Rewrite, Stashing and Maintenance.
- Read the one-line description to confirm the command does what you expect.
- Copy the command and replace placeholders like <branch>, <file>, <commit> and <url> with your own values.