1

I have looked at multiple questions and none seem to match what I am trying to do. I started down the path of dump, filter, load but that didn't seem right. Move may do it but it doesn't feel right since I am combining and versions seem like they will be over-written.

My current structure looks like:

/REPO
     /Project_1
           /trunk
           /branches
           /tags
     /Project_2
          /trunk
          /branches
          /tags
     /Project_3
         /trunk
         /branches
         /tags  

I would like to move them into a structure that looks like

/REPO_NEW
     /trunk
          /Project_1
          /Project_2
          /Project_3
     /branches
          /Project_1
          /Project_2
          /Project_3
     /tags
          /Project_1
          /Project_2
          /Project_3

I would like to preserve the history once the restructuring is complete. The brute force appraoch of disconnecting everything and redoing my directory/file structure and then commiting into the new repository if my absolute fallback as history is lost.

4

1 回答 1

1

如果您想保留历史记录,则转储/过滤/加载正是您想要的。有大量文档介绍了进行转储/加载以将 2 个存储库合并在一起。

您将不得不多次重复转储/过滤/加载来移动每个项目,否则您将不得不使用大型过滤器命令来完成。我想我会为每个项目都这样做以保持简单。

于 2013-06-11T15:52:18.357 回答