我可以在不使用额外存储库的情况下将 git 子模块推送到 Github 吗?
我有一个 Github“黄金”帐户,但分配的存储库即将用完。 :-(
幸运的是,我有一些非常小的项目,它们是相互关联的,可以被视为一个更大项目的子模块。在子模块方面我有点新手,所以如果我的问题很天真,请原谅我.. 如果可能的话,
我想将超级模块及其所有子模块推送到一个 Github 存储库中,这将有助于我为真正独立的项目保留剩余的 Github 存储库
。到目前为止,看起来每个子模块都需要有自己的遥控器,如果是这样的话,我很快就会用完存储库,
非常感谢!
I have a Github "Gold" account and I'm starting to run out of my allotted repositories. :-(
Luckily, I have a few very small projects that are interrelated and could be treated as submodules of a bigger project. I'm a bit of a novice when it comes to submodules, so forgive me if my question is naive...
I'd like to push the supermodule along with all of its submodules into one Github repository if that's possible. This would help me conserve my remaining Github repositories for projects that are truly separate. Can I do this?
In my investigation of the problem so far it looks like each submodule needs to have its own remote, and if that's the case then I'll run out of repositories before long!
Thanks much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,你是对的。每个子模块都是它自己的完整存储库。因此它需要一个额外的存储库才能共享。
As far as I know, you're right. Each submodule is it's own complete repository. So it needs an extra repository to be able to share.