The command reference
The core resource covers 28 Git commands organised into 8 categories. Every entry explains the underlying mechanics, the flags that matter, and tested copyable terminal examples.
A free, practical Git command reference for developers. 28 commands across 8 categories — from git init to git rebase.
From first-day setup to history rewriting. Each category lists the commands it covers so you can jump straight to the one you need.
Initialize repositories, clone remote code, set credentials, and navigate the help manuals.
Check working directory status, stage files, record snapshots, and review diffs.
Isolate feature work, switch branches, integrate changes, and rebase cleanly.
Filter commits, format graph logs, trace line changes, and audit with blame.
Configure remotes, push commits, pull upstream changes, and inspect remote refs.
Shelve uncommitted work temporarily, inspect stash stacks, and clear artifacts.
Create lightweight and annotated release tags, inspect signatures, describe versions.
Discard local edits, step commit pointers back, or create non-destructive reverts.
Mental models, real terminal transcripts and copyable commands — written to help you write, branch and ship with confidence.
The core resource covers 28 Git commands organised into 8 categories. Every entry explains the underlying mechanics, the flags that matter, and tested copyable terminal examples.
Most daily development comes down to four commands: git init, git add, git commit and git push. Learn the order and the reasoning behind each step.
Create and switch branches, merge cleanly, decide when to rebase versus merge, and resolve conflicts calmly. Works with GitHub, GitLab and Bitbucket.
Longer articles cover bisecting bugs with git bisect, semantic commit messages, automated hooks, worktrees, and recovering a detached head.
Reading is not enough. Run every snippet in a throwaway repository and build real muscle memory — git reflog has you covered when something goes wrong.
Answers to the panic moments: undoing committed secrets, rewriting old commit messages, and restoring accidentally deleted local branches.
Install Git, configure your identity, and take your first snapshot. Then read the full reference whenever a command gets in your way.
Step 1 — Configure identity
Step 2 — Initialize & commit
No gatekeeping and no filler. Read the reference, check the output, then run the command in a real repository.
Browse 28 commands across 8 categories — from init and commit through to interactive rebase and reflog recovery.
Each entry explains what Git actually does, the flags that matter, and the state it leaves your repository in.
Examples are complete and copyable, with the terminal output shown so you know what to expect before you run it.
Practise in a scratch repository. Build the muscle memory once, then reuse it on real work.
No guessing which flags to pass or what the terminal should print. Learn the rationale, see the options, and copy the command straight into your shell.
Browse all 28 commandsClear answers about Git commands, daily workflows, resolving merge conflicts, and undoing mistakes.
Still stuck on a command or an edge case?
Master Git offline with a complete, structured course in PDF + ePub. One-time payment, free updates forever.
I work with small product teams that need senior engineering judgement without a full-time hire.
Have a project in mind?
Tell me the scope, deadline and constraints. I reply within one business day.