简体   繁体   English

迁移到GIT时如何正确保留SVN存储库的分支/合并历史记录

[英]How to correctly preserve branch/merge history of an SVN repository when migrating to GIT

I'm trying to migrate a small SVN repository w/ 2000+ revs with 10+ branches to GIT. 我正在尝试将具有10个以上分支的2000 / revs以上的小型SVN存储库迁移到GIT。 Branches sometimes merge contents from other branches. 分支有时会合并其他分支的内容。 My main choice, was obvisously to use: 我的主要选择是明显地使用:

git svn clone -s URL

However, my GIT history only preserved the branching information and never shows a merge. 但是,我的GIT历史记录仅保留分支信息,而从未显示合并。 Having an hard time googling for this too... Am I missing something? 我也很难搜寻这个...我是否想念一些东西?

svn only very recently added merge tracking. svn仅在最近添加的合并跟踪中。 Does your version of subversion support it? 您的Subversion版本支持吗? If it does, do you know how it actually communicates that to git so that git could model it as well? 如果是这样,您是否知道它实际上如何将其传达给git,以便git也可以对其进行建模?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM