Git Workflow Typing Drills
You type Git commands more than any other CLI tool — often dozens of times per day. Making `git commit -m`, branch switches, and rebase flows automatic frees your attention for what actually matters: what the commands do to your history.
Making Version Control Muscle Memory
Git's grammar is verb-flag-argument: `git commit -m "message"` chains the command, a hyphenated flag, and a quoted string — three different typing modes in one line. Double-dash long flags (`--force-with-lease`, `--oneline`) embed hyphens mid-word, and branch paths use forward slashes (`feature/typing-game`). Commit hashes mix letters and digits in patterns you can't predict, only type accurately.
Multi-command workflows are where fluency pays: stash, checkout, pull, rebase, pop is five commands that experienced developers fire off as a single thought. Conventional commit prefixes (`feat:`, `fix:`) add colon discipline to messages. Drilling complete real workflows — not isolated commands — builds the sequence memory that makes Git feel like an extension of your hands.
Key Drills for Git Workflow:
- Flags as chunks: `-m`, `--amend`, `--force-with-lease` — drill full flags, not letters. Hesitating mid-flag is where errors creep in.
- Branch-path slashes: `feature/stats-page` patterns mix hyphens and slashes. Practice them together.
- Quote your messages: Commit messages live in quotes. The `-m "` opener should be automatic.
Sample Drill: Git Commit & Push
Add, commit, and push modifications to remote repositories.
git add .
git commit -m "feat: implement code editor visual styling"
git push origin main
All 15 Git Workflow Drills
Every session picks a random drill from this pool. Use the difficulty filter above to stay on easy warm-ups or jump straight to the hard ones.
-
Git Commit & Push easy
Add, commit, and push modifications to remote repositories.
-
Stash and Switch easy
Park work on a path, update main, then restore the stash.
-
Amend the Last Commit easy
Fold a forgotten file into the previous commit and reword it.
-
Annotated Tags easy
Create, push, list and delete release tags.
-
Restore and Clean easy
Discard edits, unstage files and preview untracked cleanup.
-
Branching & Merge Conflicts medium
Stash changes, switch branches, rebase from upstream origin.
-
Backport with Cherry-pick medium
Carry hotfix commits onto a release branch and resolve a conflict.
-
Log Filtering and Format medium
Search history by author, date, pickaxe string and custom format.
-
Hotfix in a Worktree medium
Fix a bug in a second working tree without stashing current work.
-
Fixups and Autosquash medium
Record fixup commits and let an interactive rebase fold them in.
-
Interactive History Surgery hard
Inspecting and rewriting history with log, cherry-pick, and reset.
-
Automated Bisect hard
Binary search for the commit that broke a test using bisect run.
-
Reflog Recovery hard
Recover commits lost to a hard reset via the reflog and fsck.
-
Sparse Monorepo Clone hard
Partial clone that checks out only selected monorepo folders.
-
SSH Commit Signing hard
Configure SSH keys to sign commits and tags, then verify them.
The Symbols That Slow You Down
The keystrokes below are where Git Workflow typing speed is won or lost. Key positions shown for QWERTY — the pattern transfers to any layout, just on different physical keys.
| Symbol | Used For | Keys | How to Drill It |
|---|---|---|---|
| -m | Short flag | - unshifted, then letter | `git commit -m` — the hyphen-letter opener should fire as one unit, dozens of times a day. |
| -- | Long flag | Two hyphens | `--oneline`, `--force-with-lease` — double-dash flags embed hyphens mid-word. Keep the rhythm even. |
| "…" | Quoted message | Quotes as Shift+Apostrophe | The `-m` plus quote opener starts every commit message. A quote reflex makes it seamless. |
| ~ | Tilde ancestor | Shift+Backtick (top-left) | `HEAD~3` — one of the farthest, blindest reaches, used in history arithmetic. |
| ^ | Parent ref | Shift+6 | `HEAD^`, `main^` — Shift-6 for parent commits, alongside the tilde for generations. |
| ... | Diff range | Three periods | `main...feature` in diffs and logs — three even period strikes between branch names. |
Common Git Workflow Typing Mistakes
- ✗ Hesitating mid-flag: `--force-with-lease` is one word with two embedded hyphens, not three tokens.
- ✗ Missing quotes around messages with spaces — the flag then quote should be a single reflex.
- ✗ Fumbling commit hashes — mixed letter-digit strings can't be predicted, only typed accurately. Drill hash-like strings.
What's a Good Git Workflow Typing Speed?
Git rewards chunked flags and whole-command rhythm: 35–50 WPM is a solid working speed, and 55+ WPM at 97%+ accuracy means version control never interrupts your thinking.