Archive a repository
A Data Center license is required to use this feature. Get an evaluation license to try it out, or purchase a license now.
If you’d rather not delete a repository, you can archive it instead. This helps to declutter the list of repositories and ensure more accurate code search results.
Repositories can be archived:
- from Repository settings by repository admins.
- in bulk from the Administration area by system and global admins.
Archiving a repository makes it read-only and excludes it from searches and comparison. It also means that you can't:
- create pull requests
- create branches
- add comments
- change repository details
- move the repository
Here’s some more things to note about archiving repositories:
- You can still fork and clone an archived repository.
- You can’t archive a repository with open pull requests.
- Repository admins can unarchive archived repositories.
- Archiving a repository doesn’t reduce the disk space.
- You can search for code in archived repositories. Learn more about how to perform code search
- You’ll still be able to see the repositories you’ve archived.
Repositories list that includes archived repositories
Archive or unarchive a single repository from Repository settings
To archive a single repository:
- Navigate to Repository settings > Repository details.
- Select Manage repository > Archive.
- In the confirmation modal, select Archive.
To unarchive, select Manage repository > Unarchive.
Archive or unarchive repositories in bulk from the Administration area
You can archive a single repository or multiple repositories at once.
To archive multiple repositories:
- Navigate to Administration > Git > Repositories.
- Select the checkboxes next to the repositories you want to archive.
- Select Archive.
- In the confirmation modal, select Archive.
To unarchive, select More actions ••• > Unarchive next to the repository you want to unarchive.