如何集成SVN和Git? [英] How can one integrate SVN and Git?

查看:64
本文介绍了如何集成SVN和Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我们正在使用SVN在公司中开发开源移动分析.但是现在我们在 Github 中开源了代码.

Now we're developing an open source mobile analytics in company by using SVN. But now we open source the code in Github.

对于管理人员,我们必须继续在办公室使用SVN,那么如何获得脚本或其他东西来帮助我从SVN信息库中获取所有更改的代码,并自动提交并推送到Github?现在,Github有一些旧版本代码,而我们当地的svn代码是最新的.如何将svn代码从哪个版本同步到Github?

For the management, we must continue use SVN in office, so how can I get a script or something else to help me get all the changed code from the SVN repository and commit and push it to Github automatically? And that now Github has some old version codes, and our local svn's codes are latest. How can I sync the svn code to Github, from which revision?

另一个问题是Github的文件夹结构与svn的代码文件夹的结构不同.我需要将一些子文件夹同步到Github.我该如何处理?

Another problem is the Github's folder structures are different from svn's code folder's structures. I need sync some sub-folders together to Github. How can I deal with it?

谢谢.

推荐答案

svn2git项目(2.0版) )似乎就是您所需要的:

The svn2git project (version 2.0) appears to be what you need:

从svn2git 2.0开始,有一项新功能可将SVN的最新更改提取到使用svn2git创建的git存储库中.这是一种单向同步,但允许您将svn2git用作SVN存储库的镜像工具

As of svn2git 2.0 there is a new feature to pull in the latest changes from SVN into your git repository created with svn2git. This is a one way sync, but allows you to use svn2git as a mirroring tool for your SVN repositories

这篇关于如何集成SVN和Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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