This is one of the best pieces of technical writing I've seen - an implementation of (some of) Git in JavaScript, with a very well written inline description of what's going on.
On a slightly nerdier bent, this explanation of the packfile format is pretty great too.