将仓库从git转换为subversion [英] Converting a repository from git to subversion

查看:130
本文介绍了将仓库从git转换为subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除此之外,是否有合理的方式将将整个git存储库转换为subversion



我只能找到吨关于将从subversion 迁移到 git的信息,并在两者之间交换变更集,但不是将整个git存储库简单转换为svn。

解决方案

这个方向转换的一般问题是,Git存储库可能包含的不仅仅是一个线性的修订历史记录,因为Subversion会期待。具有不同历史和频繁合并提交的多个祖先都是可能的,这在Subversion存储库中很难表现出来。



对于有线性历史记录的简单情况在你的Git仓库中,你可以使用 git-svn dcommit 将批量推到一个空的Subversion仓库。


Reasons for doing this aside, is there a reasonable way to convert an entire git repository to subversion?

I can find only tons on information on migrating from subversion to git, and exchanging changesets between the two, but not for doing a simple conversion of the entire git repository to svn.

解决方案

The general problem with doing conversions this direction is that Git repositories can contain more than just a linear history of revisions, as Subversion would expect. Multiple ancestries with divergent histories and frequent merge commits are all possible, which can't be easily represented in a Subversion repository.

For simple cases where you do have a linear history in your Git repository, you can use git-svn dcommit to push the lot up to an otherwise empty Subversion repository.

这篇关于将仓库从git转换为subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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