I need to change an old git commit message in Bitbucket. I tried git rebase -i
and reworded my message, but when I pulled and committed it just kept the old message in Bitbucket and merged my changes in.
It's basically 4 step process. But a bit risky if multiple team member are working on the same branch and have their own copies. (If you are the only one working on it, go for it)
This git manual explains it beautifully: Amending older or multiple commit messages
git rebase -i HEAD~X
(X=No of commit messages you want to change)git push -f