DEV Community

Discussion on: One Command to Change the Last Git Commit Message

bigray profile image

I think you can revert your commit with the wrong message.

Now, cherry-pick your commit with the wrong message, amend it, replace with the right message and push without --force.

Ok, there are a little bit more manipulation but you avoid the wrath of your team. :)