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.

Try:

Replace placeholders like <branch>, <file>, <commit>, <url> and <name> with your own values.

Command Description Category
No command matches your search.
Try a different command or flag — for example rebase, stash pop or --force.

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

  1. Search by command (commit), flag (--amend) or plain description (undo last commit).
  2. Or browse by category — from Setup & Config through Branching, Remotes, Undo & Rewrite, Stashing and Maintenance.
  3. Read the one-line description to confirm the command does what you expect.
  4. Copy the command and replace placeholders like <branch>, <file>, <commit> and <url> with your own values.

Frequently asked questions

They are stand-ins for your own values: <branch> is a branch name, <file> a path, <commit> a hash or reference, <url> a repository address and <name> an identifier such as a remote or tag name. Replace them after copying — brackets included.

Open the Undo & Rewrite category or search for what you want to take back — “unstage”, “amend”, “revert”. Read the description carefully first: some undo commands preserve your changes while others, like a hard reset, discard them permanently.

Yes. Dedicated categories cover submodules, worktrees, tagging, stashing and repository maintenance, alongside the everyday staging, branching, remote and history commands.

No — it is a quick lookup for the command and flags you need right now. For complete option lists and behavioral details, run git help <command> or read the official manual pages the commands link into.

Yes, completely free. The entire directory is built into the page — searching, filtering and copying all happen in your browser.

Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.