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.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Sign in to GitHub
Follow these actions to access your account:
Step 2: Navigate to the repository you want to archive
Locate the repository in one of these ways:
Step 3: Open the repository settings
Access the settings panel:
Step 4: Scroll to the Danger Zone
Find the archive option:
Step 5: Archive the repository
Initiate the archive process:
Step 6: Confirm archiving
Complete the action:
Step 7: Verify the repository is archived
Check the archive status:
Step 8: (Optional) Unarchive the repository
If you need to restore write access:
Step 9: (Optional) Archive via GitHub CLI
Use the GitHub CLI to archive a repository from your terminal:
gh repo archive OWNER/REPO --confirm
OWNER
with your GitHub username or organization name.REPO
with the repository name.--confirm
flag skips the interactive confirmation prompt.
Additional Notes
gh repo unarchive OWNER/REPO --confirm
That's it! You’ve successfully archived your GitHub repository.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.