问题
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