Saad Bash
PostsTagsGuestbookAbout
Published on
Monday, November 7, 2022

How to undo last commit message in Git

Authors
  • avatar
    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
View on GitHub

Tags

Git

Next Article

How to add border to a container in Flutter
← Back to posts
mailMailgithubGitHublinkedinLinkedin
Saad Bash
•
© 2025
•
Saad Bash | Dev Notes & Snippets