Git will not init/sync/update new submodules

后端 未结 21 2085
野趣味
野趣味 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:52

    Sort of magically, but today I ran git submodule init followed by git submodule sync followed by git submodule update and it started pulling my submodules... Magic? Perhaps! This is truly one of the most annoying experiences with Git…

    Scratch that. I actually got it working by doing git submodule update --init --recursive. Hope this helps.

    PS: Make sure you are in the root git directory, not the submodule's.

提交回复
热议问题