I worked partway through this book called "Building Git" by James Coglan, a few years ago, which beautifully expanded on the internal structure of git. Anyone interested should definitely check it out. It is definitely much more accessible than suffering through the official Git documentation which must have been written by a bunch of robot bureaucrats. No offense, but its terrible.