change comment pushed commit git code example
Example: how to change a commit message after push
git commit --amend -m "New commit message"
Then
git push --force
and you're done
git commit --amend -m "New commit message"
Then
git push --force
and you're done