Search code examples
githubrepository

How to archive a repository on GitHub


Instead of closing/deleting I want to archive one of my git repositories on GitHub. I have seen on multiple projects a yellow banner with the message "This repository has been archived by the owner. It is now read-only." but I can't find out how to achieve this.

Examples:
https://github.com/Homebrew/legacy-homebrew
https://github.com/semantic-release/commit-analyzer-v2

Screenshot: Yellow archived banner on GitHub



Does anyone know how to do this or is it just possible for repositories with a big community?


Solution

  • It’s within the generic Settings of your repository. In there you’ll find the Danger Zone at the very bottom of the website. There is a new button called Archive this repository.

    Danger Zone