how to change commit message on github code example Example: change git commit message git commit --amend -m "New commit message"