git 如果我将其他人的私有 Github 存储库分叉到我的帐户中,它会作为公共存储库出现在我的帐户中吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9629538/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 13:09:49  来源:igfitidea点击:

If I fork someone else's private Github repo into my account, is it going to appear in my account as a public repo?

gitgithubrepositoryprivate

提问by Terence Ponce

Someone gave me access to one of their private repo on Github. What I want to do is to fork that project into my own account, so I could make use of Github's pull request feature.

有人让我访问他们在 Github 上的私人仓库之一。我想要做的是将该项目分叉到我自己的帐户中,这样我就可以利用 Github 的拉取请求功能。

I only have a basic account on Github, so I cannot make private repos on my own, but if I fork someone else's private repo into my account, is it going to appear in my account as public?

我在 Github 上只有一个基本账户,所以我不能自己做私人回购,但是如果我把别人的私人回购分叉到我的账户中,它会在我的账户中显示为公开吗?

回答by ebaxt

No. You can fork it and it still remains private.

不。你可以分叉它,它仍然是私有的。

Private collaborators may fork any private repository you've added them to without their own paid plan. Their forks do not count against your private repository quota.

私人合作者可以在没有自己的付费计划的情况下分叉您将他们添加到的任何私人存储库。他们的分叉不计入您的私有存储库配额。

https://github.com/plans

https://github.com/plans

回答by Planet Bips

When you revoke access for a member on the main branch (master repo), it will yank the forked repo as well. So, if you added members to a team, and they forked from the master repo, always ensure that you either have merged their changes or you have a copy of their changes before you remove them from the team, as the members forked repo gets deleted when he is removed from the team and you wont have a way to fetch his changes (if only you care about those).

当您撤销对主分支(主存储库)成员的访问权限时,它也会拉取分叉存储库。因此,如果您将成员添加到团队,并且他们从主存储库中分叉,请始终确保您已合并他们的更改或在将其从团队中删除之前拥有他们更改的副本,因为成员分叉的存储库会被删除当他从团队中移除并且您将无法获取他的更改时(如果您只关心这些)。

回答by DeveloperAlex

Here's GitHub's answer:

这是 GitHub 的回答:

https://help.github.com/articles/what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility/#deleting-a-private-repository

https://help.github.com/articles/what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility/#deleting-a-private-repository

Deleting a private repository

删除私有仓库

When you delete a private repository, all of its private forks are also deleted.

当您删除私有仓库时,其所有私有分支也将被删除。