Follow the below commands:
git commit --amend -m "New commit message"
Then you need to force push the new commit:
git push --force