git what happens when amending a commit code example Example: amend commit git commit --amend -m "an updated commit message"