http://ori.scs.stanford.edu/
Some of its underlying architecture is very similar to git. Check out Section 5.4 of the paper: http://delivery.acm.org/10.1145/2530000/2522721/p151-mashtiz...