Git will not init/sync/update new submodules

后端 未结 21 1978
野趣味
野趣味 2020-12-12 13:11

Here\'s part of the contents of my .gitmodules file:

[submodule \"src/static_management\"]
        path = src/static_management
        url = gi         


        
21条回答
  •  囚心锁ツ
    2020-12-12 13:50

    I had the same problem today and figured out that because I typed git submodule init then I had those line in my .git/config:

    [submodule]
       active = .
    

    I removed that and typed:

    git submodule update --init --remote
    

    And everything was back to normal, my submodule updated in its subdirectory as usual.

提交回复
热议问题