Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
GitHub AE 目前是有限发行版。请联系我们的销售团队以了解更多信息。

删除仓库或更改其可见性时,复刻会发生什么变化?

删除仓库或更改其可见性会影响仓库的复刻。

Warning:

  • If you remove a person’s access to a private repository, any of their forks of that private repository are deleted. Local clones of the private repository are retained. If a team's access to a private repository is revoked or a team with access to a private repository is deleted, and team members do not have access to the repository through another team, private forks of the repository will be deleted.

  • You are responsible for ensuring that people who have lost access to a repository delete any confidential information or intellectual property.

  • People with admin permissions to a private or internal repository can disallow forking of that repository, and organization owners can disallow forking of any private or internal repository in an organization. For more information, see "Managing the forking policy for your organization" and "Managing the forking policy for your repository."

删除私有仓库

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

私有复刻和权限

私有复刻继承上游或父仓库的权限结构。 这有助于私有仓库的所有者保持对其代码的控制。 例如,如果上游仓库是私有的,并授予团队读/写访问权限,则同一团队对该私有上游仓库的任何复刻拥有读/写权限。 私有复刻仅继承团队权限(而不是个人权限)。

更改内部仓库的可见性

如果企业策略允许复刻,则内部仓库的任何复刻都将是私有的。 如果您更改内部仓库的可见性,组织或个人帐户拥有的任何复刻都将保持私有。

删除内部仓库

如果您更改了内部仓库的可见性,然后删除仓库,复刻将继续存在于单独的网络中。

延伸阅读