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:
- 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 š¦©