How to undo last commit message in Git

Saad Bash

Amend the most recent commit message:

git commit --amend -m "New message"

Changes already pushed to remote branch

git push <remote> <branch> -f