是否有可能从一个回购协议拉到另一个? [英] Is it possible to pull from one repo and push to other one?

查看:81
本文介绍了是否有可能从一个回购协议拉到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在github上有一个repo,它是公开的,我有一个开源应用程序,用于制作产品目录和小型cms内容。



我还有一个私有存储库(不是由github托管),它是一个在github托管的开源应用程序下开发的应用程序。



由于我目前正在开发这两个应用程序,在开源软件中添加功能,并在私有软件中进行更改,如更改模板并从开源软件中提取代码。



我是想知道是否有什么方法可以将新东西从开源软件中提取出来,同时也可以将新应用程序的代码推送到其他回购软件中。 方法 git pull private master 和 git push github master 从你的私有仓库中取出它就是这样命名的)并且推送到github(可能也被称为 origin )。这不是SVN; - )

I have one repo in github which is public, there I have an Open source application i'm working on that is for making product catalogs, and small cms content.

I also have a private repository (not hosted in github) which is an application developed under the open source application hosted in github.

Since I'm currently working on both applications, adding features in the open source one and also making changes in the private one like changing the template and also pulling the code from the open source one.

I was wondering if there is any way in which I could pull the new stuff from the open source one but also pushing the code of the new application to the other repo.

解决方案

git pull private master and git push github master pulls from your private repo (given it's named like that) and pushes to github (might also be called origin). It's not SVN ;-)

这篇关于是否有可能从一个回购协议拉到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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