Get git to commit like expected