如何克隆有其他repo的git repo?

时间:2015-09-01 12:51:57

标签: github git-clone

我试图将https://github.com/ornicar/lila克隆到我的电脑上。 该项目有https://github.com/ornicar/lila/tree/master/modules/chess中其他项目的链接 当我只是做git clone git@github.com:ornicar / lila.git它没有克隆国际象棋内容。 如何解决?

1 个答案:

答案 0 :(得分:2)

克隆主仓库后,您想要的是git submodule update --init。它将获取其他仓库并将其放置在适当的位置。