Back to all tips

Git Pro Tips

Reword a Commit Message

🗓️ Published: 4/15/2026 Originally on X: 6/16/2022
Reword a Commit Message

To change the message of a commit among your last few commits, use interactive rebase:

git rebase -i HEAD~3

Find the commit you want and change pick to reword. After saving and exiting, Git opens another editor so you can update the message.

Discuss this tip on