问题描述
我有两个不同的本地git回购站。每个都以github作为(独立的)私人回购托管,并拥有自己的合作者/开发者。我是这两个github回购站的所有者。
#回购A,在
〜/ projects / repo -a
#Repo B,位于
〜/ projects / repo-b
我有两个问题:
*如何将 repo-a 合并到 repo-b ,反之亦然。可能吗?
*如果可能,我们可以使 repo-a 合作者做而不是显示在 repo-b 上,反之亦然?这个想法是保持回购合作者的机密性。
谢谢。
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!