如何将多个SVN中继路径迁移到单个Git主服务器而不丢失历史记录

时间:2018-04-25 12:54:26

标签: git svn-repository git-repo

我有SVN文件夹结构,如下所示:

enter image description here

我想将所有不同的svn trunk路径迁移到单个git master中。

输出:

enter image description here

任何人都知道怎么做?我对SVN来说是goo迁移的新手。 非常感谢你的帮助。

我尝试过svn git clone -s但它只适用于单个svn路径迁移。但是我需要将多个svn trunk路径迁移到单个git master中。

1 个答案:

答案 0 :(得分:0)

我的建议是转换3次:将每个SVN repo转换为单独的git repo,然后使用git subtreegit fetch + {{1}将merge 3个git存储库转换为一个}。

相关问题