Restoring a deleted repository

You can restore some deleted repositories to recover their contents.

Anyone can restore deleted repositories that were owned by their own user 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 Soporte de 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 user account

  1. En la esquina superior derecha de cualquier página, da clic en tu foto de perfil y después da clic en Configuración. Icono Settings (Parámetros) en la barra de usuario
  2. En la barra lateral izquierda, haz clic en Repositories (Repositorios). Pestaña Repositories (Repositorios)
  3. Debajo de "Repositorios", da clic en Repositorios borrados". Pestaña de repositorios borrados
  4. Junto al repositorio que quieres restaurar, da clic en Restaurar. Botón de restaurar
  5. Lee la advertencia y da clic en Entiendo, restaurar este repositorio. Botón para confirmar restauración

Restoring a deleted repository that was owned by an organization

  1. En la esquina superior derecha de GitHub.com, haz clic en tu foto de perfil y luego en Tus organizaciones. Tus organizaciones en el menú de perfil
  2. Junto a la organización, haz clic en Configuración. El botón de configuración
  3. En la barra lateral izquierda, da clic en Repositorios borrados. Pestaña de repositorios borrados
  4. Junto al repositorio que quieres restaurar, da clic en Restaurar. Botón de restaurar
  5. Lee la advertencia y da clic en Entiendo, restaurar este repositorio. Botón para confirmar restauración

Further reading

¿Te ayudó este documento?

Política de privacidad

¡Ayúdanos a hacer geniales estos documentos!

Todos los documentos de GitHub son de código abierto. ¿Notas algo que esté mal o que no sea claro? Emite una solicitud de cambios.

Haz una contribución

O, aprende cómo contribuir.