Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2024-03-26. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Восстановление удаленного репозитория

Вы можете восстановить удаленные репозитории, чтобы восстановить их содержимое.

Кто эту функцию можно использовать?

Enterprise owners can restore a deleted repository.

About repository restoration

Usually, if someone deletes a repository, it will be available on disk for 90 days and can be restored via the site admin dashboard. For more information, see "Administering your instance from the web UI."

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.

It can take up to an hour after a repository is deleted before that repository is available for restoration.

Restoring a repository will not restore release attachments or team permissions. Issues that are restored will not be labeled.

Restoring a deleted repository

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
  3. Under "Search users, organizations, teams, repositories, gists, and applications", type the name of the user or organization in the text field. Then to the right of the field, click Search. Screenshot of the "Search" page of the "Site admin" settings. The button to search users and organizations, labeled "Search," is highlighted with an orange outline.
  4. In the search results, click the name of the user or organization. Screenshot of the "Accounts" search results. In the list of matches, "user1" is highlighted with an orange outline.
  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.

Further reading