如何修复 Gitbash 中的'fatal: cannot use C:/Users/Administrator/ as an exclude file'错误?



当我尝试使用 add 命令git add .git bash 向我展示这一点时fatal: cannot use C:/Users/Administrator/ as an exclude file error.

如何解决此问题?

查看错误的设置在哪里 — 在本地配置中还是在全局配置中:

git config core.excludesfile
git config --global core.excludesfile

并删除错误设置:

git config [--global] --unset core.excludesfile

相关内容

最新更新