Nice post :). It made me think of ugit: DIY Git in Python [1] which is still by far my favorite of this kind of posts. It really goes deep into Git internals while managing to stay easy to follow along the way.
This page is beautiful!
Bookmarked for later
I mapped git operations to Neo4j and it really helped me understand how it works.
in a similar vein; Write yourself a Git was fun to follow https://wyag.thb.lt/