A Differential Geometric Approach To Git And Stability