github edit commit log code example Example: git amend git commit --amend -m "an updated commit message"