git status returns fatal: Not a git repository but .git exists and HEAD has proper permissions

后端 未结 8 732
无人及你
无人及你 2020-12-02 12:24

When I run git status on my repo I get fatal: Not a git repository: /my repo/.git/modules/docs

I\'ve checked and .git exists and contains HEAD with the

8条回答
  •  遥遥无期
    2020-12-02 12:40

    I was facing this issue with submodules as well, but after analyzing the two files

    {submodule}/.git .git/modules/submodules/{submodule}/config

    I realized that in my case this was not an issue.

    After a little research I have found that in my case I had to add the git (command : module add git) and the error disappeared.

提交回复
热议问题