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

后端 未结 8 729
无人及你
无人及你 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:38

    I solved this issue by reseting all git-submodules with

    rm -rf .git/modules
    git submodule update --init
    

提交回复
热议问题