how to change the commit messgae of last commit code example Example: edit last commit message git commit --amend -m "New commit message."