Change your last commit message

git commit --amend -m "Your new message"

Change messages of multiple commits

git rebase -i HEAD~4

More details

Warning:

Do not do this if you already pushed your commits and somebody else is working on that project.

If you cannot avoid that, read this stackoverflow comment.