本文介绍了如何禁用github上的私人回购分叉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

bitbucket很容易。如果我不想让我的回购被分叉。我可以禁用它。只有拥有回购权限的用户,我才能邀请其回购。



但github中的功能在哪里。我有企业回购,我希望邀请人们参与。但不希望他们分叉。

我可能错过了一些东西,谷歌搜索没有带来任何有用的东西。
任何人都可以指向正确的方向吗?



感谢您的宝贵时间。

解决方案

GitHub doesn' t具有Bitbucket所具有的功能,但仍然无法使用公共私有存储库进行分支。您会看到以下消息:

 私人货叉无法公开。 

当有人想要发布您的私人回购时,它为您提供了傻瓜保护。当然,如果有人真的希望这样做,他们总是可以将所有代码推送到一些新的repo,就像@Chris上面所述的那样。


It was easy on bitbucket. if I dont want my repo to be forked. I can disable it. Only people I have invite can work on repo as long as they have permission on repo.

But where is that functionality in github. I have enterprise repo and I want invite people work on it. but dont want them to fork it.

I might have missed something, google search didn't bring anything useful. Can anybody point me in right direction please ?

Thanks in advance for your time.

解决方案

GitHub doesn't have such a feature as Bitbucket has, but still, you can't make fork from a private repository public. You'll see this message:

Private forks can't be made public.

It gives you a "fool protection" when somebody want's to publish your private repo. Of course, if somebody really want's to do this, they always can push all the code to some new repo as @Chris stated above.

这篇关于如何禁用github上的私人回购分叉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 11:55