Git: Modify Last Commit Message

You might have done a typo in you previous commit message. The amend flag is your friend

amend flag

git commit --amend -m "NewMessage"

This command allows you to replace the previous message from your last commit.

Note: you need to do this before you push your changes.