[git] Checkout old commit and make it a new commit