Github: Share private repository with another organization

人盡茶涼 提交于 2020-05-09 06:47:05

问题


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

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

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

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


回答1:


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.

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.

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

But, again, not quite what you want.



来源:https://stackoverflow.com/questions/39818482/github-share-private-repository-with-another-organization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!