github连接其他回购 [英] github linking with other repos

查看:141
本文介绍了github连接其他回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目依靠github中的两个仓库来运作。
当我将我的项目提交给github时,我如何链接到这两个回购?
我应该在自己的回购中复制文件,或者在特定版本中链接到其他回购文件,因为我不希望它更新并导致不兼容。
我已经创建了我的github repo我应该怎么做?

I have a project that relies on two repos in github to function. When I submit my project to github how do I link to these two repos? Should I duplicate the files in my own repo or link to the other repo at a specific revision as I don't want it to update and cause incompatibility. I already created my github repo what should I do?

推荐答案

你可以使用git submodules来链接其他的项目。看到这里 - http://help.github.com/submodules/

You can use git submodules to "link" to other projects. See here - http://help.github.com/submodules/

这篇关于github连接其他回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆