Move archived repos to a repo?

Viewed 61

We have hundreds of archived repos on github which is no longer in use.

There is no option on Github to hide archived repos by default. Currently, it is not user-friendly to go through active repos, especially a lot of scrolling on github.

I like to create a new repo called Archived and move a lot of archived repos to that repo but is that possible? As I understand we can't have multiple repos in a repo Archived. If not, what are other options?

1 Answers

There are a few things you can do:

  • GitHub has star lists where you can categorize starred repositories. You can create a list of archived repositories by starring all archivable repositories and adding them to a custom list.
  • Create a repository with each folder being a submodule of a to-be archived repository. This way, the commit history can be updated and this repository is a place to access all of the data without copying the files. The archived repositories would still have to exist, although they can be on any git hosting site.
  • If they're all repos with one branch, you can make a repository with an orphaned branch for each project. This means you won't be able to see the files easily but they'll be stored on GitHub.

The third option, or any method of storing the content of the git repositories in one folder or repository, would lead to a lot of loss of data and should be avoided if possible.

Related