Ever made a typo in your commit message ๐ or forgot to follow proper commit message standards (like I did)? Donโt worry โ renaming commits is easier than you think!
โ 1. Using Fork (Interactive Rebase โ GUI method)
1๏ธโฃ Open the repository in Fork
2๏ธโฃ Right-click the commit you want to rename
3๏ธโฃ Select Interactive Rebase > "Reword Message.."
This will open a dialog to edit the message and select rework instead of pick.
4๏ธโฃ Save changes and push with --force if it was already pushed
โจ Super simple โ perfect for visual thinkers, right?
Download: https://git-fork.com/
โ 2. Using Git commands (Terminal)
๐ To rename the most recent commit:
git commit --amend
๐งน To rename older commits (via rebase):
git rebase -i HEAD~5 # Change 5 to however many commits you want to edit
- Replace
pickwithrewordfor the commits you want to rename - Then press:
Esc โ :wq โ Enterto save and exit - Git will then prompt you to edit each commit message
- After you're done:
git push --force
โ ๏ธ Donโt forget the --force push โ if you skip this, your branch may get out of sync or duplicate commits may appear.
๐ฌ Have you tried the Fork method or the command line? Which one works better for you?


Top comments (0)