作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
当我尝试将 git 中的任何分支 merge 到 master 中时,我得到了error: addinfo_cache failed for path 'file'
。
我的工作:
>git checkout master
>git merge other-branch
Git 给我:
error: addinfo_cache failed for path 'file'
file: unmerged (581c47f7d0e1a0bc825d528d9783ac18ee0cce27)
file: unmerged (26a0c24dccd2bc2f74e20488ca01bba2fcd9cf56)
file: unmerged (3be471ca5c689693339827a455f187814677642f)
fatal: git write-tree failed to write a tree
>git status
产出:
On branch master
Your branch is up-to-date with 'origin/master'.
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: file
no changes added to commit (use "git add" and/or "git commit -a")
我不知道该怎么做,也找不到有关该问题的任何信息。
最佳答案
当您更改了 core.autocrlf
配置选项但没有删除并重新 checkout 您的工作树时,可能会发生此错误。
因此,要么将 core.autocrlf
改回原来的样子,要么推送您的更改,删除您的存储库并再次克隆它。
关于git-错误 : addinfo_cache failed for path 'file' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48080112/
我在挑选 gerrit 时遇到以下错误……有没有人知道这意味着什么,为什么会有人看到它? error: addinfo_cache failed for path 'ROE/NAS/src/abc.c
当我尝试将 git 中的任何分支 merge 到 master 中时,我得到了error: addinfo_cache failed for path 'file'。 我的工作: >git check
我是一名优秀的程序员,十分优秀!