You are here

Changing git commit message after push

git commit --amend -m "New commit message"

and then

git push --force origin <BRANCH-NAME>
code type: 
Taken from: 
https://stackoverflow.com/questions/8981194/changing-git-commit-message-after-push-given-that-no-one-pulled-from-remote