- Published on
How to undo last commit message in Git
- Authors
- Name
- 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
git commit --amend -m "New message"
git push <remote> <branch> -f