how to change the message of a commit in git code example Example: change git commit message git commit --amend -m "New commit message"