As shown on this popular answer in SO, when I need to edit/correct the message for the last commit, I do:
git commit --amend -m "New commit message"
But what am I supposed to do when I want to amend commit messages for commits previous to the last one? For instance, the 14th last commit - also considering that commits have not been pushed to remote?
Is there a way of doing this without resetting previous commits? Would rebase
be the right thing to do in this case?