Github:与其他组织共享私有存储库 [英] Github: Share private repository with another organization

查看:106
本文介绍了Github:与其他组织共享私有存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我属于两个github组织,比方说O1和O2.

I belong to two github organizations, let's say O1 and O2.

O1中只有一个私有存储库,只有属于O1的人才能访问.

There is one private repository in O1 that can only be accessed by the people who belong to O1.

有没有办法与O2中的人共享该存储库?

Is there a way I can share that repository with the people in O2?

我尝试了git clone --mirror,但它似乎没有自动与原始存储库同步

I tried git clone --mirror but it looks like it's not automatically synced with the original repository

推荐答案

您可以按照以下说明与特定个人共享私有存储库: https://help.github.com/articles/inviting-协作者到个人资料库/

You can share a private repository with specific individuals by following the instructions here: https://help.github.com/articles/inviting-collaborators-to-a-personal-repository/

不幸的是,这不能让您立即加入整个组织.

Unfortunately, that doesn't let you pull in whole organisations at once.

您可以将存储库移至另一个组织,然后将O1和O2中的每个人都添加到该组织中,但这也很糟糕.

You could move the repository to another organisation and then add everyone from both O1 and O2 to that org, but that's fairly terrible, as well.

您也可以转移存储库到其他组织: https://help.github.com/articles/about-repository-transfers/

You can transfer repositories to other organisations, too: https://help.github.com/articles/about-repository-transfers/

但是,再次,不是您想要的.

But, again, not quite what you want.

这篇关于Github:与其他组织共享私有存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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