git submodule init does absolutely nothing

前端 未结 3 1901
傲寒
傲寒 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:16

    Use the --recursive option when cloning. This option initializes all listed submodules :

    git clone --recursive
    

    In another case, if you want to initialize submodules of an git you just cloned, you can use

    git submodule update --init --recursive
    

提交回复
热议问题