【发布时间】:2021-05-07 19:08:26
【问题描述】:
我有一个现有的 repo,我需要更改所有提交的所有作者电子邮件(我是唯一一个在该 repo 上工作的人)。
git rebase --root --exec 'git commit --amend --author="Arthur ATTOUT <new.email@company.com>" --no-edit'
虽然前 100 次提交得到妥善处理,但在特定提交时,git 会发疯并抱怨存在冲突
error: could not apply 0709cb2... Unit32 default value watermark
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 0709cb2... Unit32 default value watermark
Auto-merging ViewModels/ViewModels/DataprepControl.cs
CONFLICT (content): Merge conflict in ViewModels/ViewModels/DataprepControl.cs
me@home MINGW64 ~/source/repos/soft (dev|REBASE-i 129/320)
为什么 git 突然意识到那些超级旧的提交中存在冲突? rebase 不应该考虑我当时申请的冲突解决方案吗?
【问题讨论】: