Inside the .git folder - Explore the mysterious depths...
summary
Maps every file inside a .git directory to actual commands and bytes: shows commits/trees/blobs as objects with 40‑char hashes (first seven usually enough), explains that blobs are zlib‑compressed and stored under folders named by the first two hex chars (max 256), demonstrates git cat-file (-t/-p), inspects the index file with git ls-files and status, shows git gc creating pack files that store deltas (example: two loose blobs ~70 bytes → pack ~40 bytes) and uses git verify-pack/reflog to prove it.
AI-written summary · about
chapters (7)
- 0:00Introduction and setup
- 3:57Entering the .git folder
- 5:42Exploring .git files
- 18:35Investigating .git folders
- 24:53The objects directory
- 34:30Pack files and efficiency
- 35:54Conclusion and summary
related talks
43mThe Definitive Deep Dive into the .git Folder
46mGit internals: Why trees are a developer's best friend
41mKeynote: Wrapping Your Head Around Git
25mKnowing how Git works
20mDo You Know What's in the Software You Run? Introducing GitBOM
11mLightning Talk: Repurposed Purpose: Using Git's DAG for Supply Chain Artifact Resolution
34mSustaining Git Performance Under Heavy Workloads
47mExploring a complex codebase with AI
