git submodule init does absolutely nothing

前端 未结 3 1933
傲寒
傲寒 2021-01-07 19:36

I have a strange problem with \"git submodule init\"

When I added the submodules using \"git submodule add url location\" it cloned the repository just fine and ever

3条回答
  •  粉色の甜心
    2021-01-07 20:18

    Following worked for me in case of the googletest submodule:

    git submodule add --force https://github.com/google/googletest.git googletest
    

    So, you need to manually add submodule (note the --force flag).

提交回复
热议问题