Courses/CS Foundations & Interview Prep/How Git Works Internally
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
// Curriculum

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
ObjectiveWhat Git really is under the hood
Start moduleFree preview
ObjectiveBlobs, trees, commits, and content-addressable storage
ObjectiveBranches are just pointers to commits
ObjectiveWorking directory, index, and HEAD
ObjectiveTwo ways to combine history at the object level
ObjectiveGit's undo history and safety net
ObjectiveHow Git stays compact over time
ObjectiveReading 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.

Preview Module 0Back to catalog