reduce git commit history on checkout