how to change message of commit in git code example Example: change message from last pushed commit git commit --amend