git status给出“未实现功能"和“致命:不能将.git/info/exclude用作排除文件" [英] git status is giving "Function not implemented" and "fatal: cannot use .git/info/exclude as an exclude file"
问题描述
我正在使用gitbash和git版本2.20.1.windows.1. commit
,diff
,branch
都可以正常工作,但是git status
(肯定是最基本的命令?)失败.错误消息是这样的,其中fileA
和fileB
是我的存储库中的跟踪文件:
I am using gitbash and git version 2.20.1.windows.1. commit
, diff
, branch
all work fine, but git status
(the most basic command, surely?) fails. The error message is like this, where fileA
and fileB
are the tracked files in my repo:
$ git status
.gitignore: Function not implemented
fileA: Function not implemented
fileB: Function not implemented
fatal: cannot use .git/info/exclude as an exclude file
对于.git/info/exclude
或.gitignore
,我找不到任何奇怪的地方.
I can't spot anything strange about .git/info/exclude
or .gitignore
.
GitHub Desktop向我显示了正确的status
,所以这是我的解决方法.
GitHub Desktop shows me the correct status
, so that's my workaround for now.
推荐答案
Jan 2019: Check if this is releated to the recent issue 1989
禁用fscache,恢复为2.19.1或将存储库移至本地驱动器即可解决此问题.
Disabling the fscache, reverting to 2.19.1 or moving the repo to the local drive fixes the problem.
git config --global core.fscache false
Update July 2020, as noted by Rintze Zelle in the comments:
更新为现在也应该可以解决此问题.
从git版本2.20.1.windows.1更新到git版本2.27.0.windows.1后,我不再遇到此错误
Updating to a newer version of Git for Windows of >= v2.21.0 should now solve this problem as well.
I no longer experienced this error after updating from git version 2.20.1.windows.1 to git version 2.27.0.windows.1
这篇关于git status给出“未实现功能"和“致命:不能将.git/info/exclude用作排除文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!