- If it is necessary to change the commit message for an old commit or a set of commits, then an interactive rebase can be used:
- git rebase -i HEAD~n, Where n is the number of commits to display.
- Let’s add some commits and try to change the messages
We can see the log responce , six is renamed as six-two.txt