Py学习  »  Git

分支上的git递归克隆不起作用

narner • 5 年前 • 1207 次点击  

我正试图用几个git子模块克隆存储库的一个特定分支,但却没有成功地克隆它们。我在努力:

git clone --recurse-submodules --branch myBranch -j8 https://github.com/me/myrepo

但是,即使在克隆开始之后,所有子模块文件夹都是空的。

也在尝试 git submodule update , git submodule sync ……但没什么用,我也没主意了。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/39900
 
1207 次点击  
文章 [ 1 ]  |  最新文章 5 年前
VonC
Reply   •   1 楼
VonC    6 年前

确保MyBranch中有这些子模块:

如果没有子模块条目,这将解释为什么它们是空的。
如评论所述,如果它们是 git submodule update --init 应该够了。