What's the fastest way to edit hundreds of Git commit messages?

后端 未结 6 2138
梦谈多话
梦谈多话 2020-12-23 14:23

I have a fairly large Git repository with 1000s of commits, originally imported from SVN. Before I make my repo public, I\'d like to clean up a few hundred commit messages t

6条回答
  •  既然无缘
    2020-12-23 14:35

    You can use git rebase -i and replace pick with reword (or just r). Then git rebasing stops on every commit giving you a chance to edit the message.

    The only disadvantages are that you don't see all messages at once and that you can't go back when you spot an error.

提交回复
热议问题