How to Hide Archived Repositories From Github Search

A sweet workaround to stay organized

ā€¢

When you archive a repository on GitHub, itā€™s not hidden from your search results.

So, every time you perform a search, the archived repositories appear alongside your active ones, making it harder to quickly find what youā€™re looking for.

And Github doesnā€™t seem to wanna fix that one for some reasonā€¦

So!

Hereā€™s what you do:

Click here to watch the video if you don't feel like reading

Walkthrough

The Workaround: Transfer, Donā€™t Archive

Instead of archiving the repositories you no longer need, you can transfer them to a new organization.

Hereā€™s a probably unnecessary step-by-step guide:

  1. Create a New Organization:
  • Go to the ā€˜Organizationsā€™ tab on GitHub.
  • Create a new organization.
  • Name it something indicative, like ā€œyour-organization-archiveā€ or ā€œgraveyardā€.

2. Transfer Your Repositories:

  • Instead of archiving the repository, click on ā€˜Transferā€™.
  • Select the new organization as the destination.

CAUTION:

If youā€™re on a PAID plan there are things that your repo will lose that you may want:

  • Code owners - Any existing wikis - Pulse, Contributors, Community, Traffic, Commits, Code Frequency, Network, and Forks on the ā€” ā€” Insights tab - Draft PRs - Multiple assignees for issues and PRs - Multiple reviewers for PRs - Branch and tag protection rules

But now these repositories wonā€™t show up in your primary accountā€™s search!

but they will remain accessible under the new organization.

Unforeseen Benefits?

Thereā€™s a speculative bonus to this method.

Transferring repositories to a different organization might free up some storage space on your primary account.

Itā€™s not confirmed, but itā€™s a potential additional benefit to this workaround.

ā€” -

So, hereā€™s to a cleaner, more organized GitHub account ā€” and not throwing your computer out of the window.

Cheers & stay funky, my friends šŸ¦©

- Devin Schumacher Founder @ SERP | SERP AI

Continue Learning

Discover more articles on similar topics