👩💻 Join our community of thousands of amazing developers!
Hello! I posted a comic on Mastodon this week about what’s in the .git directory and someone requested a text version, so here it is. I added some extra notes too. First, here’s the image. It’s a ~15 word explanation of each part of your .git directory. You can git clone https://github.com/jvns/inside-git if you want to run all these examples yourself. Here’s a table of contents: HEAD: .git/head branch: .git/refs/heads/main commit: .git/objects/10/93da429… tree: .git/objects/9f/83ee7550… blobs...