Skip to main content


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 AE, 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.