如何使用分支中的外部链接存储库进行 git clone?

Go *_*eon 6 git clone

我正在尝试 git clone 这个案例。

例如在 git 分支中:

  • 外部存储库 1 @ 797131b
  • 外部回购 2 @ 04a1ffe
  • 外部回购 3 @ b8132df

它是分支中的外部链接存储库。

我想要带有外部链接存储库的 git clone 存储库。

但是,我只能在 git clone 之后检查空目录。

如何一次尝试使用外部链接存储库克隆 git 存储库?

dNi*_*tro 12

要自动初始化和更新存储库中的每个子模块,请传递--recursivegit clone

git clone --recursive <repoAddress>
Run Code Online (Sandbox Code Playgroud)

关于子模块的更多信息:https : //git-scm.com/book/en/v2/Git-Tools-Submodules