how to change commit message in git after pushing to remote 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