← back to diagnosis

fix commit message

safe

Update the message on your most recent unpushed commit.

$ git commit --amend

Your editor will open. Edit the message, save, and quit. Verify with:

$ git show

This only works for your most recent commit. If you already pushed, amending will rewrite history and require a force push.