恢复已删除的仓库

Site administrators can restore deleted repositories to recover their contents.

通常情况下,如果有人删除仓库,它将在磁盘上保留 90 天并且可以通过站点管理员仪表板进行恢复。 Unless a legal hold is in effect on a user or organization, after 90 days the repository is purged and deleted forever.

关于仓库恢复

If a repository was part of a fork network when it was deleted, the restored repository will be detached from the original fork network.

仓库被删除后,可能需要一个小时才能恢复。

恢复仓库不会恢复发行版附件或团队权限。 已恢复的议题不会被标记。

恢复已删除的仓库

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. 在搜索字段中,输入用户或组织的名称,然后单击 Search(搜索)站点管理员设置搜索字段

  4. 在搜索结果中,单击用户或组织的名称。 站点管理设置搜索选项

  5. In the Repositories section, click the Deleted repositories link.

  6. Find the repository you want to restore in the deleted repositories list, then to the right of the repository name click Restore.

  7. To confirm you would like to restore the named repository, click Restore.

延伸阅读

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。