简体   繁体   English

如何签出所有子模块和子子模块?

[英]How do I checkout all submodules and sub-submodules?

We have a git repository, with submodules.我们有一个带有子模块的 git 存储库。 Inside one of the submodules is another submodule.其中一个子模块内部是另一个子模块。

When we download the repository with git --recurse-submodules, it doesnt checkout the sub-submodules.当我们使用 git --recurse-submodules 下载存储库时,它不会检查子子模块。

How do you achieve this?你如何做到这一点?

Thanks谢谢

Run this command and it will recursively clone all submodules and nested submodules.运行此命令,它将递归克隆所有子模块和嵌套子模块。 git submodule update --init --recursive

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM