DEV Community

Cover image for Modify your last commit message
Adam K Dean
Adam K Dean

Posted on

Modify your last commit message

It's easy to modify your last commit message, simply add --amend and commit again.

git commit -m "Fixed issue where udpate failed"
Enter fullscreen mode Exit fullscreen mode

Oh, not again, look at that typo!

git commit --amend -m "Fixed issue where update failed"
Enter fullscreen mode Exit fullscreen mode

As simple as that.

Top comments (0)