我基于master创建了一个名为lab的分支。几个月后,我尝试根据master重新设置实验室分支的基础。首先有一个.gitignore冲突;在解决它之后,我运行了git rebase --continue,但它再次失败,这一次没有帮助信息告诉我如何继续这个rebase。如何根据master来调整实验室分支的基础?
git rebase --continue
Applying: start edit
Applying: a
fatal: mode change for .gitmodules, which is not in current HEAD
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0002 a
The copy of the patch that failed is found in:
f:/testxxx/.git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".发布于 2015-04-24 21:52:46
.gitmodules存在于一个分支上,而不存在于另一个分支上。查看补丁文件,看看是哪一个,然后使用git add或git rm来决定是否需要.gitmodules文件作为rebase的结果。
发布于 2016-07-26 21:18:38
尝试使用--merge修饰符运行rebase
git rebase --merge branchnamehttps://stackoverflow.com/questions/29837053
复制相似问题