/github-for-non-tech

How to archive a GitHub project?

Learn how to archive your GitHub project with our step-by-step guide. Follow instructions to make your repository read-only using the UI or CLI.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to archive a GitHub project?

 

Step 1: Sign in to GitHub

 

Follow these actions to access your account:

  • Open your preferred web browser.
  • Navigate to https://github.com.
  • Enter your username or email address and your password.
  • Click the “Sign in” button.

 

Step 2: Navigate to the repository you want to archive

 

Locate the repository in one of these ways:

  • From your GitHub homepage, click “Your repositories” in the sidebar and select the repo.
  • Use the search bar at the top of GitHub by typing the repository name and selecting it from the results.

 

Step 3: Open the repository settings

 

Access the settings panel:

  • On the repository’s main page, click the “Settings” tab in the top navigation bar.

 

Step 4: Scroll to the Danger Zone

 

Find the archive option:

  • In the Settings page, scroll down to the bottom until you reach the “Danger Zone” section.

 

Step 5: Archive the repository

 

Initiate the archive process:

  • Within the “Danger Zone,” locate the “Archive this repository” button.
  • Click on “Archive this repository.”

 

Step 6: Confirm archiving

 

Complete the action:

  • In the confirmation dialog, read the details carefully. Archiving makes the repository read-only.
  • Type the repository name exactly as shown to confirm.
  • Click “I understand the consequences, archive this repository.”

 

Step 7: Verify the repository is archived

 

Check the archive status:

  • After confirming, you will be redirected to the repository page.
  • You should see a banner at the top indicating “This repository has been archived by the owner. It is now read-only.”

 

Step 8: (Optional) Unarchive the repository

 

If you need to restore write access:

  • On the archived repository page, click “Unarchive this repository” in the banner.
  • Confirm by typing the repository name and clicking the confirmation button.

 

Step 9: (Optional) Archive via GitHub CLI

 

Use the GitHub CLI to archive a repository from your terminal:

gh repo archive OWNER/REPO --confirm
  • Replace OWNER with your GitHub username or organization name.
  • Replace REPO with the repository name.
  • The --confirm flag skips the interactive confirmation prompt.

 

Additional Notes

 

  • Archived repositories are read-only: Issues, pull requests and code changes are disabled.
  • You can always unarchive a repository using the UI or the CLI command:
gh repo unarchive OWNER/REPO --confirm
  • Archiving is reversible, so you won’t lose any data.
  • Only users with admin permissions on the repository can archive or unarchive.

 

That's it! You’ve successfully archived your GitHub repository.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022