English 中文(简体)
利用包括子午线在内的电车
原标题:pull using git including submodule
  • 时间:2011-11-11 07:11:20
  •  标签:
  • git
  • github

我在我的一个项目中增加了一个分单元,请允许我说,我的朋友希望把这个分单元包括进去,他如何能够这样做? 每当我试图从烟雾中下载烟雾材料时,它就拖拉ule子。

最佳回答

您可以选择<代码>----------cursive,以便自动启动和更新分流(以及这些分流层所含的任何分流体等)。

git clone --recursive <URL-OF-REPOSITORY>
问题回答

这是设计的。 作为第二步。

git clone git://url...
cd repo
git submodule update --init

之后,在<代码>git拉之后添加另一步。

git pull ...
git submodule update --recursive

当然,只有首先正确设立分册,才能做到这一点。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签