How to “git clone” including submodules?

后端 未结 15 990
夕颜
夕颜 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:22

    Submodules parallel fetch aims at reducing the time required to fetch a repositories and all of its related submodules by enabling the fetching of multiple repositories at once. This can be accomplished by using the new --jobs option, e.g.:

    git fetch --recurse-submodules --jobs=4
    

    According to Git team, this can substantially speed up updating repositories that contain many submodules. When using --recurse-submodules without the new --jobs option, Git will fetch submodules one by one.

    Source: http://www.infoq.com/news/2016/03/git28-released

提交回复
热议问题