Learning about the quirks of Git using Javascript