Skip to main content

Restoring a deleted repository

You can restore some deleted repositories to recover their contents.

Who can use this feature

Anyone can restore deleted repositories that were owned by their own personal account. Organization owners can restore deleted repositories that were owned by the organization.

About repository restoration

A deleted repository can be restored within 90 days, unless the repository was part of a fork network that is not currently empty. A fork network consists of a parent repository, the repository's forks, and forks of the repository's forks. If your repository was part of a fork network, it cannot be restored unless every other repository in the network is deleted or has been detached from the network. For more information about forks, see "About forks."

If you want to restore a repository that was part of a fork network that is not currently empty, you can contact Suporte do GitHub.

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 that was owned by a personal account

  1. No canto superior direito de qualquer página, clique na foto do seu perfil e em Configurações.

    Ícone Settings (Configurações) na barra de usuário

  2. In the "Code planning, and automation" section of the sidebar, click Repositories.

  3. Em "Repositórios", clique em Repositórios excluídos. Guia Repositórios excluídos

  4. Ao lado do repositório que você deseja restaurar, clique em Restaurar. Botão Restaurar

  5. Leia o aviso e clique em Eu entendo, restaure este repositório. Botão para confirmar a restauração

Restoring a deleted repository that was owned by an organization

  1. No canto superior direito do GitHub.com, clique na foto do seu perfil e clique em Suas organizações. Suas organizações no menu de perfil
  2. Ao lado da organização, clique em Configurações. Botão de configurações
  3. Na barra lateral esquerda, clique em Repositórios excluídos. Guia Repositórios excluídos
  4. Ao lado do repositório que você deseja restaurar, clique em Restaurar. Botão Restaurar
  5. Leia o aviso e clique em Eu entendo, restaure este repositório. Botão para confirmar a restauração

Further reading