对于我尝试运行的每个 git 命令,我都收到此错误,但在任何地方都没有找到类似的东西。我发现了诸如“权限被拒绝”之类的内容和其他访问 git 配置的问题,但与此“是目录”警告无关。我什至不知道它是否与我得到的致命错误有关,但这是我目前拥有的所有信息。
user@computer:~/folder$ git status
warning: unable to access '/home/user/.gitconfig': Is a directory
warning: unable to access '/home/user/.gitconfig': Is a directory
fatal: unknown error occurred while reading the configuration files
Run Code Online (Sandbox Code Playgroud) git ×1