CS Foundations & Interview PrepIntermediate8 modules~4.0 hours hands-on
How Git Works Internally
Look under the hood of Git — the object model, content-addressable storage, refs and the commit DAG, the three trees, merge vs rebase at the object level, the reflog, and packfiles — all verified with real git plumbing commands.
// What you'll be able to do- Blobs, trees, commits, and content-addressable storage
- Branches are just pointers to commits
- Working directory, index, and HEAD
- Two ways to combine history at the object level
8 modules, built to run
Every module ships runnable code. Expand any one to see what's inside.
00IntroductionWhat Git really is under the hood30 min
Objective — What Git really is under the hood
Start moduleFree preview
01The Object ModelBlobs, trees, commits, and content-addressable storage30 min
Objective — Blobs, trees, commits, and content-addressable storage
02Refs, HEAD & the Commit DAGBranches are just pointers to commits30 min
Objective — Branches are just pointers to commits
03The Three TreesWorking directory, index, and HEAD30 min
Objective — Working directory, index, and HEAD
04Merge vs RebaseTwo ways to combine history at the object level30 min
Objective — Two ways to combine history at the object level
05The ReflogGit's undo history and safety net30 min
Objective — Git's undo history and safety net
06Packfiles & Garbage CollectionHow Git stays compact over time30 min
Objective — How Git stays compact over time
07Pattern SynthesisReading any repository's internals with confidence30 min
Objective — Reading any repository's internals with confidence
Ready to start How Git Works Internally?
Start with the free Module 0, then unlock the full course on a Pro plan.