Sometimes intentionally or unintentionally you may have given a wrong commit message due to various reasons.
But don't worry...
You can change your commit messages with GIT
checkout your branch where you want to change your commit messages
git checkout <branch>
Rebase will help you modify your commit messages, squash and merge all your commits into one, but this tutorial is mainly to edit your messages. I will talk more about
rebase in another tutorial.
git rebase -i HEAD~N
display a list of the lastN
commits in your default text editor.
git push -f origin <branch>