I've inherited ~150 Git repos at my new job, and my goal is to remove them from the local server where they presently reside and migrate everything into BitBucket.
Alas, most of these repos are only being kept around for legacy purposes and I don't really want to create a new BB repo for each and every one of them. Ultimately, I want to create a new repo called "DeepFreeze" that stores the more useless of these old repos in one centralized place, with them still accessible but practically invisible as a result.
There seems to be two main ways to go about this:
- Subtree merge them all into DeepFreeze.
- Add them as submodules.
Subtree Merge seems the most obvious, but I get the impression that will only add a single branch to the new repo.
Submodules thus seem to be the better option, but I worry the old projects won't effectively be stored with my new repo, and cloning DeepFreeze and then doing a "git submodule update" will fail when attempting to pull from the soon-to-be-deleted bare repos on the soon-to-be-repurposed local server.
Any thoughts? Thanks!