How to Hide Archived Repositories From Github Search

How to Hide Archived Repositories From Github Search

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:

CHAPTERS:

00:00 How to Hide Archived Repositories From Github Search
00:16 The Workaround — Transfer!
01:04 Unforeseen benefits??
01:20 Zen

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:

  2. Go to the ‘Organizations’ tab on GitHub.

  3. Create a new organization.
  4. 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.

🎁 SEO & Digital Marketing Resources: https://serp.ly/@devin/stuff
💌 SEO & Digital Marketing Insider Info: @ https://serp.ly/@devin/email

🎁 Artificial Intelligence Tools & Resources: https://serp.ly/@serpai/stuff
💌 Artificial Intelligence Insider Info: @ https://serp.ly/@serpai/email

👨‍👩‍👧‍👦 Join the Community: https://serp.ly/@serp/discord
🧑‍💻 https://devinschumacher.com/