Hello! I was talking to a friend about how git works today, and we got onto the topic - where does git store your files? We know that it's in your .git directory, but where exactly in there are all the versions of your old files?

For example, this blog is in a git repository, and it contains a file called content/post/2019-06-28-brag-doc.markdown. Where is that in my .git folder? And where are the old versions of that file? Let's investigate by writing some very short Python programs.

continue reading on jvns.ca

⚠️ This post links to an external website. ⚠️