8000 Add restore deleted repo in GHES · my-lambda-projects/docs@c82917f · GitHub
[go: up one dir, main page]

Skip to content

Commit c82917f

Browse files
authored
Add restore deleted repo in GHES
1 parent c9dc066 commit c82917f

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

content/admin/user-management/managing-repositories-in-your-enterprise/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ children:
1313
- /configuring-git-large-file-storage-for-your-enterprise
1414
- /migrating-to-internal-repositories
1515
- /disabling-git-ssh-access-on-your-enterprise
16+
- /restoring-a-deleted-repository
1617
- /troubleshooting-service-hooks
1718
shortTitle: Manage repositories
1819
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Restoring a deleted repository
3+
intro: Site administrators can restore deleted repositories to recover their contents.
4+
versions:
5+
ghes: '*'
6+
ghae: '*'
7+
topics:
8+
- Enterprise
9+
- Privacy
10+
- Repositories
11+
shortTitle: Restore a deleted repository
12+
---
13+
Usually, if someone deletes a repository, it will be available on disk for 90 days and can be restored via the site admin dashboard. Unless a legal hold is in effect on a user or organization, after 90 days the repository is purged and deleted forever.
14+
15+
## About repository restoration
16+
17+
If a repository was part of a fork network when it was deleted, the restored repository will be detached from the original fork network.
18+
19+
It can take up to an hour after a repository is deleted before that repository is available for restoration.
20+
21+
Restoring a repository will not restore release attachments or team permissions. Issues that are restored will not be labeled.
22+
23+
## Restoring a deleted repository
24+
25+
{% data reusables.enterprise_site_admin_settings.access-settings %}
26+
{% data reusables.enterprise_site_admin_settings.search-user-or-org %}
27+
{% data reusables.enterprise_site_admin_settings.click-user-or-org %}
28+
1. In the {% octicon "repo" aria-label="The repo icon" %} **Repositories** section, click the {% octicon "trash" aria-label="The trash icon" %} **Deleted repositories** link.
29+
1. Find the repository you want to restore in the deleted repositories list, then to the right of the repository name click **Restore**.
30+
1. To confirm you would like to restore the named repository, click **Restore**.
31+
32+
## Further reading
33+
34+
- "[Placing a legal hold on a user or organization](/admin/user-management/managing-users-in-your-enterprise/placing-a-legal-hold-on-a-user-or-organization)"

content/repositories/creating-and-managing-repositories/deleting-a-repository.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ topics:
2424
**Warnings**:
2525

2626
- Deleting a repository will **permanently** delete release attachments and team permissions. This action **cannot** be undone.
27-
- Deleting a private {% ifversion ghes or fpt or ghae or ghec %}or internal {% endif %}repository will delete all forks of the repository.
27+
- Deleting a private or internal repository will delete all forks of the repository.
2828

2929
{% endwarning %}
3030

31-
{% ifversion fpt or ghec %}
32-
You can restore some deleted repositories within 90 days. For more information, see "[Restoring a deleted repository](/articles/restoring-a-deleted-repository)."
33-
{% endif %}
31+
Some deleted repositories can be restored within 90 days of deletion. {% ifversion ghes or ghae %}Your site administrator may be able to restore a deleted repository for you. For more information, see "[Restoring a deleted repository](/admin/user-management/managing-repositories-in-your-enterprise/restoring-a-deleted-repository)." {% else %}For more information, see "[Restoring a deleted repository](/articles/restoring-a-deleted-repository)."{% endif %}
3432

3533
{% data reusables.repositories.navigate-to-repo %}
3634
{% data reusables.repositories.sidebar-settings %}

content/repositories/creating-and-managing-repositories/restoring-a-deleted-repository.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ redirect_from:
88
versions:
99
fpt: '*'
1010
ghec: '*'
11+
ghes: '*'
12+
ghae: '*'
1113
topics:
1214
- Repositories
1315
shortTitle: Restore deleted repository
1416
---
17+
{% ifversion fpt or ghec %}
1518
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.
1619

1720
## About repository restoration
@@ -44,3 +47,7 @@ Restoring a repository will not restore release attachments or team permissions.
4447
## Further reading
4548

4649
- "[Deleting a repository](/articles/deleting-a-repository)"
50+
51+
{% else %}
52+
Usually, deleted repositories can be restored within 90 days by a {% data variables.product.prodname_enterprise %} site administrator. For more information, see "[Restoring a deleted repository](/admin/user-management/managing-repositories-in-your-enterprise/restoring-a-deleted-repository)."
53+
{% endif %}

0 commit comments

Comments
 (0)
0