Gitlet: Git implemented in JavaScript 332 points by fogus·4329 days ago·gitlet.maryrosecook.com·Show in HN
A related way to learn is from git's initial source, which was quite small.https://news.ycombinator.com/item?id=8650483
Warning: the file format has changed slightly.