将非标准svn转换为git [英] Convert non standard svn to git
问题描述
我们有一个非标准的svn设置,如下所示:
We've got a non-standard svn setup which looks like this:
Root
|----->Trunk
| |---->Projects
| | |---> Project 1
| | |---> Project 2
| | |---> Project 3
| |---->Libraries
| | |---> Library 1
| | |---> Library 2
|----->Tags
| |---->Projects
| | |---> Project 1
| | | |----> 1.0.0.0
| | | |----> 1.0.0.1
| | |---> Project 2
| | | |----> 1.0.0.2
| | | |----> 1.0.0.3
| |---->Libraries
| | |---> Library 1
| | | |----> 1.0.0.0
| | | |----> 1.0.0.1
| | |---> Library 2
| | | |----> 1.0.0.0
| | | |----> 1.0.0.1
我已经完成了git-svn的克隆,但是当然所有标签都不起作用(svn中没有分支). 无论如何,有没有将这个混乱弄成多个git repos?
I've already done a git-svn clone, but of course none of the tags work (we have no branches in svn). Is there anyway to untangle this mess into multiple git repos?
推荐答案
您可以使用git-svn import.您将需要为每个项目和每个库执行一次.使用-t -T参数指定主干和标签的位置,但忽略分支规范.
You can use git-svn import. You will need to do it once for every project and once for every library. use the -t -T parameters to specify the trunk and tags locations but omit the branch specification.
现在,您需要将所有这些模块与子模块一起移植.听起来像是一个有趣且具有挑战性的项目.让我知道您是否需要更多帮助.
Now you need to graft all of them together with submodules. Sounds like a fun and challenging project. Let me know if you need anymore help.
希望这会有所帮助.
这篇关于将非标准svn转换为git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!