How to “git clone” including submodules?

后端 未结 15 983
夕颜
夕颜 2020-11-22 05:40

I\'m trying to put a submodule into a repo. The problem is that when I clone the parent repo, the submodule folder is entirely empty.

Is there any way to make it so

15条回答
  •  渐次进展
    2020-11-22 06:05

    Try this:

    git clone --recurse-submodules
    

    It automatically pulls in the submodule data assuming you have already added the submodules to the parent project.

提交回复
热议问题