An interactive explainer

You've feared the wrong thing. A branch is a 41-byte text file.

Every scary git command is a tiny pointer file moving over a store of sealed, immutable objects. That includes rebase, reset and detached HEAD. Open the .git folder, watch a commit get built from its parts, move the pointers yourself, and leave knowing why you can almost never lose work.

Git · Content-addressed objects · Branches and HEAD

Developer Tools · Intermediate · 10 min · How Git actually stores your work — an interactive explainer on ViLearn, with a simulation and a knowledge check. All explainers.

Related: The secret lives of deleted files · How a database finds one row in a million · Why a coding agent forgets everything between steps