在做时:
git merge some-branch我得到了
BUG: There are unmerged index entries:
BUG: 3 docfatal: Bug in merge-recursive.c不知道这意味着什么,但看起来比平时更出乎意料。我该拿这个怎么办?有什么清理命令能帮到我吗?
编辑
更糟糕的是,这个bug实际上是沿着我的源代码的一个版本传播的。因为some-branch最初只是我的本地工作,所以我把它推到了远程服务器上。然后克隆了一个新的存储库,并试图将前面提到的分支合并到这个副本上,并得到了相同的消息。
编辑2
我用了GIT_MERGE_VERBOSITY=5,得到了:
$> export GIT_MERGE_VERBOSITY=5; git merge origin/funkload
Merging:
a1ef5a2 Uaktualniony INSTALL.
virtual origin/funkload
found 2 common ancestor(s):
d2eb442 Resources py.
119871b Nowy commit w doc.
Merging:
d2eb442 Resources py.
119871b Nowy commit w doc.
found 1 common ancestor(s):
62f4183 Poprawiony bug w obsłudze linków do resources, które są null.
Removing doc/concept/agreement.lyx
Removing doc/concept/agreement.pdf
Removing doc/concept/concept.lyx
...
Removing druglo-doc
Removing src/db/fixtures/initial.json
Skipped src/druglo/backend/actions/tests/fight.py (merged same as existing)
Auto-merging src/druglo/backend/characters/models/behaviours.py
CONFLICT (content): Merge conflict in src/druglo/backend/characters/models/behaviours.py
Auto-merging src/druglo/backend/players/models/players.py
Auto-merging src/druglo/backend/worlds/resources.py
CONFLICT (content): Merge conflict in src/druglo/backend/worlds/resources.py
Auto-merging src/druglo/common/integrity/webservices/resources.py
CONFLICT (content): Merge conflict in src/druglo/common/integrity/webservices/resources.py
Removing src/druglo/frontend/cityscreen/models.py
Removing src/druglo/frontend/forms.py
Removing src/druglo/frontend/mainscreen/models.py
Removing src/druglo/frontend/models.py
CONFLICT (directory/file): There is a directory with name doc in Temporary merge branch 1. Adding doc as doc~Temporary merge branch 2
BUG: There are unmerged index entries:
BUG: 3 docfatal: Bug in merge-recursive.c注意:我最近将我的一个目录移到一个单独的子模块中。正因为如此,我才会有很多冲突。看来这个bug与此有关。
发布于 2011-07-20 12:41:50
该错误消息是于2010年1月推出,为了帮助调试本例,JunioC.Hamano建议将GIT_MERGE_VERBOSITY设置为5:
我们可能建议用户将
GIT_MERGE_VERBOSITY设置为5,并在消息中重新运行合并。 至少我们将知道process_renames()或process_entry()函数的哪一部分没有正确地处理未合并的路径,这可能有助于我们诊断问题。
CONFLICT (directory/file):
There is a directory with name doc in Temporary merge branch 1.
Adding doc as doc~Temporary merge branch 2它允许隔离导致此错误消息的目录。
发布于 2011-07-20 11:57:12
我刚刚删除了当前签出中的doc/ (冲突文件夹),并重新运行合并。有一些冲突,但这次没有虫子。
发布于 2017-02-17 10:56:58
当我遇到这个错误时,关闭重命名检测为我工作。
git merge --no-ff -s recursive -X no-renames <branchToMerge>https://stackoverflow.com/questions/6761229
复制相似问题