开发者

linking git and github repositories

I'm looking for a clean way to import one git repository from another, where both repositories exist on github. The two repositories are private, in case it matters.

The idea is that one repository represents one project and the other simply needs to use that project. It doesn't make sense to check in all the code from one repository into the other, since the two are conceptually different, more or less stand alone tools.

What's the easiest way to do th开发者_JAVA百科is? thanks.


Git submodules are the tool that's meant to handle this -- of course with private repositories you would need to be sure that everyone with read permission to repo B also has read permission to repo A, otherwise they won't be able to get a complete checkout.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜