gpt4 book ai didi

git status 给出 "Function not implemented"和 "fatal: cannot use .git/info/exclude as an exclude file"

转载 作者:行者123 更新时间:2023-12-03 22:57:32 35 4
gpt4 key购买 nike

我正在使用 gitbash 和 git 版本 2.20.1.windows.1。 commit , diff , branch一切正常,但 git status (当然是最基本的命令?)失败。错误信息是这样的,其中fileAfileB是我的 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 .

GitHub Desktop 向我展示了正确的 status ,这就是我现在的解决方法。

最佳答案

2019 年 1 月:检查这是否与最近的 issue 1989 有关

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
2020 年 7 月更新,如 Rintze Zelle 所述在 the comments :

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 给出 "Function not implemented"和 "fatal: cannot use .git/info/exclude as an exclude file",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54209815/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com