有什么办法可以同步GIT和Subversion版本库? [英] There is any way to synchronize GIT and Subversion repositories?

查看:102
本文介绍了有什么办法可以同步GIT和Subversion版本库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GIT和SVN客户端访问存储库。我想通过自动双向迁移来实现这一点:当用户压入GIT存储库时,它也在SVN存储库中进行COMMIT,反之亦然。



有什么工具可以帮助我做到这一点? 解决方案

最好的方法是使用 git svn 作为Subversion客户端。这提供了Subversion存储库和Git存储库之间的双向集成。一旦你有了一个Git仓库,你可以推送其他任何地方发布它。



我经常这样做,在工作中有一个Subversion版本库是主存储库,我通常使用 git svn 来访问它。有时候,如果我正在做的事情需要更多特定的Subversion功能,比如合并,我会使用普通的 svn 客户端来代替。


I want to access a repository using both GIT and SVN clients. A way I imagined to do that is through automatic two-way migration: when a user PUSHes into the GIT repository, it is also COMMITed in the SVN repository and vice-versa.

There is any tool that would help me to do that?

解决方案

The best way to do this is to use git svn as a Subversion client. This provides two-way integration between a Subversion repository and a Git repository. Once you have a Git repository, you can push that anywhere else to publish it.

I do this regularly, at work there is a Subversion repository that is the "master" repository, and I usually use git svn to access it. Sometimes if I'm doing things that need more specific Subversion functionality like merging, I'll use the regular svn client against the repository instead.

这篇关于有什么办法可以同步GIT和Subversion版本库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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