Do You Really Know How Git Works?
summary
Explains how Git stores and rebuilds history using content-addressable objects: blobs, trees, commits and annotated tags identified by 20-byte SHA-1 keys (40 hex chars) stored under .git/objects or in packfiles, with immutability and deduplication so identical files share the same object. Demonstrates commands (git hash-object, git cat-file, git switch, git merge, git rebase, git fetch, git push, git tag) and concrete behaviors: merge creates a commit with two parents, rebase rewrites commits (new hashes), fast-forward avoids new commits, a detached HEAD is risky, and unreferenced commits can be removed by garbage collection.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:22Git data model
- 7:33Content tracking in Git
- 14:42History and branches
- 27:44Branch management
- 33:04Distributed versioning
- 43:54Q&A








