Published on

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 😃.