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 "Searching for repositories." You can also search for issues and pull requests within archived repositories. For more information, see "Searching issues and pull requests."
- 在 your GitHub Enterprise Server instance 上，导航到仓库的主页面。
- 在仓库名称下，单击 Settings（设置）。
- Under "Danger Zone", click Archive this repository or Unarchive this repository.
- Read the warnings.
- Type the name of the repository you want to archive or unarchive.
- Click I understand the consequences, archive this repository.