Git Masterclass
Git is not complicated, but it is unfamiliar. Most people learn it as a list of commands to run in a particular order, which works until the day it does not — and then there is no model to reason from.
This curriculum teaches the model first and the commands as consequences of it.
Choose a starting point
Orientation
How the curriculum works and how to set up a practice environment.
Foundations
What a repository is, what Git stores and why snapshots beat diffs.
Recording changes
The working tree, the index and the commit — the daily loop.
Branching and merging
Branches as pointers, merge strategies and conflict resolution.
Remotes and collaboration
Fetch, pull, push, refspecs and remote-tracking branches.
History and rewriting
Rebase, cherry-pick, revert, reflog and the rules for rewriting.
Workflows
Trunk-based, GitHub Flow, Git Flow and how to choose.
Code review and teams
Pull requests, commit hygiene and review practice.
Internals
Objects, refs, packfiles and the plumbing beneath the porcelain.
Automation and CI
Hooks, signing, CI triggers and release pipelines.
Troubleshooting
Recovery playbooks for the things that actually go wrong.
Advanced topics
Submodules, worktrees, sparse checkout, LFS and huge repositories.
Looking something up?
Command reference
Flags, options and behaviour, organised by command.
Glossary
One precise definition per term, linked from everywhere.
Appendix
Further reading, tooling comparisons and migration guides.
How the material is structured
Every lesson follows the same shape, so you always know where to find things:
Metadata and objectives
Estimated time, difficulty level, prerequisites, and an explicit statement of what you will be able to do afterwards.
The idea
The concept, explained before any command is typed.
Hands-on
Commands you run yourself, with the exact output you should see, punctuated by checkpoints so you never drift silently out of the expected state.
Practice and recall
Exercises with progressive hints, and short self-check questions.
Contributing
This curriculum is written in the open and is licensed CC BY-SA 4.0. The authoring handbook, the style rules and the review checklist all live in the Contribute section.