合并2个不同的git Repos [英] Merge 2 Different git Repos

查看:99
本文介绍了合并2个不同的git Repos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个不同的本地git回购站。每个都以github作为(独立的)私人回购托管,并拥有自己的合作者/开发者。我是这两个github回购站的所有者。

 #回购A,在
〜/ projects / repo -a
#Repo B,位于
〜/ projects / repo-b

我有两个问题:
*如何将 repo-a 合并到 repo-b ,反之亦然。可能吗?
*如果可能,我们可以使 repo-a 合作者做而不是显示在 repo-b 上,反之亦然?这个想法是保持回购合作者的机密性。



谢谢。

解决方案 git-slave ,它有点过时,但适合我所有的需求:)


I have two different local git repos. Each is hosted on github as (separate) private repos, with its own set of collaborators / developers. I am the owner of those two github repos.

# Repo A, which  is in
~/projects/repo-a
# Repo B, which is in
~/projects/repo-b

I have two questions: * How do I merge repo-a to repo-b, and vice versa. Is it possible? * If it's possible, can we make repo-a collaborators do not show up on repo-b, and vice versa? The idea is to keep the confidentiality of the repo collaborators.

Thanks.

解决方案

Submodules are not the best for frequent commits. In my project I use git-slave, which is a little out of date, but suits all my needs :)

这篇关于合并2个不同的git Repos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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