If you want to change commit message after commit, you can do this by:

git rebase --interactive '^'

With this rebase you want edit your commit comment, after that commit your changes:

git commit --all --amend --no-edit

At last go on with your rebase to finish it:

git rebase --continue
To get back to the HEAD.

SHA-1 of the commit changes, so be creaful by pushing your commits. Don't use git push --fore


Subscribe to rebase