Techtrekking

How to Archive Github Repository

By Pravin•

Step 1: Rename the old GitHub repository

  1. Go to your old repository on GitHub: https://github.com/YOUR_USERNAME/YOUR_PROJECTNAME
  2. Click Settings
  3. Under General → Repository name, change it to:
    • YOUR_PROJECTNAME-legacy (recommended)
    • or YOUR_PROJECTNAME-v1
  4. Click Rename

Step 2: Archive the old repository

  1. Still in Settings of the renamed repo
  2. Scroll down to Danger Zone
  3. Click Archive this repository
  4. Confirm

(The old code is now safely preserved and marked as archived.)

Comments
No comments yet. Be the first to comment!
Leave a Comment
Your comment will be visible after approval.