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.

Quick answer: Nobody memorizes all of Git, but a small core accounts for the overwhelming majority of daily use, so sort the command surface into three tiers. Tier 1 is the daily loop you should be able to type without thinking, including its common flags; Tier 2 is the recovery kit where you only need to know what each command does and that it exists, with exact syntax kept in a reference; Tier 3 — interactive rebase incantations, filter-repo, submodules, worktrees, the long tail of config keys — belongs in a cheat sheet, full stop. Keep Tier 1 sharp with retrieval rather than rereading: twice a week, answer task-shaped prompts from memory before checking a reference.

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.

Which Git gotchas separate fluent from fumbling?

Whatever you memorize, learn the failure modes with it:

How do you keep the core Git commands sharp?

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.