Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 3.55 KB

archiving-repositories.md

File metadata and controls

66 lines (49 loc) · 3.55 KB
title intro redirect_from versions topics
Archiving repositories
You can archive a repository to make it read-only for all users and indicate that it's no longer actively maintained. You can also unarchive repositories that have been archived.
/articles/archiving-repositories
/github/creating-cloning-and-archiving-repositories/archiving-repositories
/articles/about-archiving-repositories
/github/creating-cloning-and-archiving-repositories/about-archiving-repositories
/github/creating-cloning-and-archiving-repositories/archiving-a-github-repository/about-archiving-repositories
/github/creating-cloning-and-archiving-repositories/archiving-a-github-repository/archiving-repositories
fpt ghes ghec
*
*
*
Repositories

About repository archival

{% ifversion fpt or ghec %}

Note

If you have a legacy per-repository billing plan, you will still be charged for your archived repository. If you don't want to be charged for an archived repository, you must upgrade to a new product. For more information, see "AUTOTITLE."

{% endif %}

{% ifversion ghec or ghes %}

Note

Customers who use {% data variables.product.prodname_GH_advanced_security %} can enable {% data variables.product.prodname_secret_scanning %} on archived repositories. For more information, see "AUTOTITLE."

{% endif %}

{% data reusables.repositories.archiving-repositories-recommendation %}

Once a repository is archived, you cannot add or remove collaborators or teams. Contributors with access to the repository can only fork or star your project.

When a repository is archived, its issues, pull requests, code, labels, milestones, projects, wiki, releases, commits, tags, branches, reactions, code scanning alerts, comments and permissions become read-only. To make changes in an archived repository, you must unarchive the repository first.

You can search for archived repositories. For more information, see "AUTOTITLE." You can also search for issues and pull requests within archived repositories. For more information, see "AUTOTITLE."

{% ifversion archive-organizations %} To archive all repositories in an organization at once, you can archive the entire organization. For more information, see "AUTOTITLE." {% endif %}

Archiving a repository

{% data reusables.repositories.archiving-repositories-recommendation %}

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

  1. Under "Danger Zone", click Archive this repository
  2. Read the warnings.
  3. In the text field, type the name of the repository you want to archive. Screenshot showing the "Archive repository" dialog box.
  4. Click I understand the consequences, archive this repository.

Unarchiving a repository

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

  1. In the "Danger Zone" section, click Unarchive this repository
  2. Read the warnings.
  3. In the text box, type the name of the repository you want to unarchive.
  4. Click I understand the consequences, unarchive this repository.