git status给出“未实现功能"和“致命:不能将.git/info/exclude用作排除文件" [英] git status is giving "Function not implemented" and "fatal: cannot use .git/info/exclude as an exclude file"

查看:636
本文介绍了git status给出“未实现功能"和“致命:不能将.git/info/exclude用作排除文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用gitbash和git版本2.20.1.windows.1. commitdiffbranch都可以正常工作,但是git status(肯定是最基本的命令?)失败.错误消息是这样的,其中fileAfileB是我的存储库中的跟踪文件:

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.

推荐答案

2019年1月:检查是否与最近的

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

Rintze Zelle 指出,更新于2020年7月. com/questions/54209815/git-status-is-giving-function-not-implemented and致命无法使用-git-info/54211014#comment111304890_54211014>评论:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆