From this question, I know it is possible to prefix/modify all commits from a git-interactive-rebase.
But is it possible to modify all to-be-renamed commits messages in a single action? For instance when you select the reword command to just take the modified message from that editor?
It is not only prefixing or replacing something. It is arbitrary modifications that can only be manually done
Rebase is usually a manual process, but there are some Unix-y ways of automating it:
Try setting
$EDITORto asedcommand before running yourrebase --continue. For example:Replace the first line's
pickwitheditore, then the rest of the lines withrewordorr.Save-exit, then run:
This'll replace all instances of
fooin the commit message withbar.