Hardscrabble 🍫

By Max Jacobson

See also: the archives and an RSS feed

Using git to track git

August 21, 2016

I made a screencast to share a fun idea I had while exploring a bit how git works.

You may know that when you use git to track a project, it creates a hidden .git directory with some files in it. But what actually goes on in there? And when do the contents of those files change?

Here’s the idea: I know a tool for tracking the changes to a directory over time, and that tool is git itself!

So in this screencast you can see me try and do that – I initialized a git repository, which created a .git folder, and then I initialized another git repository within that .git directory.

I still don’t have a really great understanding of how git represents the data, although I’ve read Mary Rose Cook’s very good essay about this topic Git From The Inside Out, which does contain those answers (I read it a while ago and forgot the details).

But I feel like I learned a few things thru this little experiment, specifically about when they change.

Note: I don't have comments or analytics on this website, so it's hard to tell if people are reading or enjoying it. Please feel free to share any feedback or thoughts by shooting me an email or tagging me in a post on Mastodon @maxjacobson@mastodon.online.