Changing a commit message – User Documentation
Posted by jpluimers on 2017/11/15
When you haven’t pushed yet, git rebase --interactive HEAD~# where # is the number of commits to view is your friend: [WayBack] Changing a commit message – User Documentation.
At the first screen, replace aa with reword then change the commit message for each commit and copy the message.
Then in each following screen, if you changed the commit message for that commit, change it there as well.
Similar answers are at [WayBack] git – How to modify existing, unpushed commits? – Stack Overflow
–jeroen






Leave a comment