Git#

Forty sections, built from the bottom up. We start with the four object types in .git/objects and never once ask you to take a command on faith — every behaviour further up the stack is derived from the storage model underneath it. The order is deliberate: nothing here depends on anything later. Processes are shown as animations — press Play and step through with the arrows — and code blocks default to the Shell tab, with git config, YAML and script tabs where those are the better answer.

40 Topics • Interactive Animations & Code Examples
Unit 1

Foundations & the Object Model#

Git from the inside out: the repository on disk and its content-addressed objects.

Unit 2

The Working Model#

How changes flow from the working tree into commits, and how refs and branches name them.

Unit 3

Inspecting & Undoing#

Reading history and undoing work at every level, safely.

Unit 4

Integrating & Rewriting History#

Merging, rebasing, cherry-picking and stashing, with the reflog as the safety net.

Unit 5

Remotes & Collaboration#

How repositories talk to each other, and the workflows teams build on top.

Unit 6

Power Tools & Maintenance#

Hooks, bisect, worktrees, big repos, maintenance and security, plus the revision material.