git rebase 修改多个提交信息
git rebase 修改多个提交信息
笔记本借给同事用了一段时间,他配置了全局user.name
和user.email
,结果我提交的好多信息作者都是他,为了不给其他同事造成困扰,需要修改下这些提交的作者信息。
有两种方案选择修改哪些提交:
1 |
|
输入完毕指令后会显示如下内容
1 |
|
将需要修改的提交前面的pico改为e或者edit然后保存。
执行修改作者指令,然后继续。
1 |
|
修复完成,推送到远端
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!