1

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:

  1. Subtree merge them all into DeepFreeze.
  2. 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!

4

1 回答 1

0

我最终只是压缩了它们中的每一个并将这些 zip 文件添加到 DeepFreeze 存储库中。工作得很好。

于 2013-05-31T14:45:17.073 回答