将大型SVN存储库迁移到git [英] Migrating a large SVN repo to git

查看:99
本文介绍了将大型SVN存储库迁移到git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大型SVN存储库(约140GB),可容纳许多项目,并且不遵循svn建议的目录结构.从所有这些数据(包括二进制文件,发行版本和依赖项)中,我真正关心的只是一条特定的路径,与其他所有路径相比,它的历史记录很小.

I have a large SVN repo (around 140GB) that holds many projects and does not follow the svn recommended directory structure. From all this data (it includes binaries, release builds and dependencies), all I really care about is at an specific path, that actually has a very small history compared to everything else.

到目前为止,我阅读的所有有关SVN到Git迁移的文档都要求我将整个SVN存储库拉到Git,但这会花费很多时间,超时,OOM并崩溃.有什么方法可以仅提取此特定文件夹的历史记录?

All docs I've read so far on SVN-to-Git migration require me to pull the whole SVN repo to Git but this is taking forever, timeouting, going OOM and crashing. Is there any way I can pull only the history for this very specific folder?

或者有什么方法可以将这个文件夹的SVN历史记录单独导出到新的SVN存储库中,然后从那里开始git迁移?

Or is there a way I can export the SVN history for this folder alone into a new SVN repo and start the git migration from there?

推荐答案

通过--no-minimize-url,例如:

Pass --no-minimize-url, E.G.,:

git svn clone <SVN_URL>/your/specific/folder --no-minimize-url --no-metadata folder

这篇关于将大型SVN存储库迁移到git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆