Building My Own Git

Short post here -

Recently, I built a toy version of git (link here).

We’ve been building a versioning system at work, and it’s almost impossible to discuss it without understanding what git is doing.

I used Typescript and Commander, so I could focus 100% on git, not a language feature I’m unfamiliar with.

I stopped upon getting to the add command (I was also debating doing git update-index) - from where I’m standing now it looks like quite an effort (not one that’s worth it) to write to the index file.

See the ls-files command to show what reading from it looks like.

Enjoy 😃.

Wow! You read the whole thing. People who make it this far sometimes want to receive emails when I post something new.

I also have an RSS feed.