Git has well over a hundred subcommands, and each of them sprouts flags like a hedge in spring. Nobody memorizes all of it — not maintainers, not the people who write Git books. Yet a small core of commands accounts for the overwhelming majority of daily use, and being fluent in that core is one of the highest-leverage skills a developer can build. It's also a quiet interview signal: candidates who fumble a basic rebase question read as less experienced than they are.

This guide sorts Git into three tiers — memorize, recognize, and look up — and ends with a retention routine that keeps the first tier sharp.

Tier 1: Memorize — the daily loop

These commands are your hands-on-the-wheel set. You should be able to type them without thinking, including their most common flags:

Tier 2: Recognize — the recovery kit

You don't need these daily, but when you need them, you're usually stressed, and half-remembering them is dangerous. Aim to know what each does and that it exists; keep the exact syntax in a reference:

Tier 3: Look up — don't clutter your memory

Interactive rebase incantations, git filter-repo, submodule commands, worktree management, tracing options for git log, the long tail of git config keys — these belong in a cheat sheet, full stop. The skill worth building here isn't recall; it's knowing the command exists and where to find the exact syntax in seconds. Trying to memorize Tier 3 crowds out the Tier 1 fluency that actually pays daily dividends.

The gotchas that separate fluent from fumbling

Whatever you memorize, learn the failure modes with it:

A retention routine for Tier 1

Fluency comes from retrieval, not rereading. Twice a week, give yourself task-shaped prompts — "unstage this file," "move my last two commits onto main," "throw away everything since the last commit" — and write the command from memory before checking a reference. Log any miss and re-test it a few days later. Because Tier 1 commands come up constantly in real work, deliberate practice converges fast: most developers can make the whole tier automatic in two or three weeks. (The same routine works for any language; see our guide on syntax recall for coding interviews.)

Where SyntaxShelf fits in

SyntaxShelf includes a focused Git cheat sheet alongside its JavaScript, Python, SQL, Bash/Linux, and other references. Its task-first search is built for exactly the Tier 2 and Tier 3 moments — you know you need to "undo the last commit" and want the exact command with a copyable example, plus the common mistakes called out next to it. You can favorite your Tier 1 set, attach personal notes (stored on your device), and because the app works offline after install with no ads or account, the answer is there even when you're on a train with no signal.