为什么`git rebase--continue`会因gitmodules错误而失败?

为什么`git rebase--continue`会因gitmodules错误而失败?,git,git-branch,git-submodules,Git,Git Branch,Git Submodules,我基于master创建了一个名为lab的分支。几个月后,我试图根据master重新设置实验室分支的基础。首先有一个,忽视冲突;解决它之后,我运行了git-rebase--continue,但它再次失败,这次没有帮助信息告诉我如何继续使用这个rebase。如何基于master重新设置实验室分支的基础 git rebase --continue Applying: start edit Applying: a fatal: mode change for .gitmodules, which is

我基于master创建了一个名为lab的分支。几个月后,我试图根据master重新设置实验室分支的基础。首先有一个,忽视冲突;解决它之后,我运行了
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".

.gitmodules
存在于一个分支上,而不存在于另一个分支上。查看补丁文件并查看哪个,然后使用git add或git rm确定是否需要一个
.gitmodules
文件作为重新基址的结果。

尝试使用--merge修饰符运行重新基址

git rebase --merge branchname

我无法删除主分支上的.gitmodules,因为我只能在自己的分支上修改,如果我在主分支上注册.gitmodules,我就无法从远程回购中获取更新:(问题仍然是如何基于主分支重新设置实验室分支的基础?