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

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.