git commit --amend -m "<New message>"
// X is the number of commits to the last commit you want to be able to edit
git rebase -i HEAD~X
// To change the pick to r, you can pass interactive to modify all commits.
You chose editing message and to keep original commit.