Hi,
I did a series of commits and now I find one of my commit (not the topmost one)
has an incorrect commit message. How can I change that specific one? I believe
git commit --amend works only for the last commit.
Thanks,
Norah Jones
--
You received this message because you are subscribed
Hi Norah,
you can use the interactive rebase to change a commit message. For this,
get the commit's hash of the commit before the one you want to change. For
example, if you have the following commits:
A - B - C - D - E - F
where F is the newest commit and you want to change the commit message