Convert non standard svn to git

北城以北 提交于 2020-01-13 03:45:06

问题


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

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?


回答1:


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.

Hope this helps.



来源:https://stackoverflow.com/questions/5394335/convert-non-standard-svn-to-git

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!