Convert custom svn to git

We have a custom svn setup that 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 already executed the git-svn clone, but of course none of the tags work (we do not have branches in svn). Is there any need to unravel this mess into multiple git repos?

+4
source share
1 answer

You can use git-svn import. You will need to do this once for each project and once for each library. use the -t -T options to specify the locations of trunks and tags, but omit the branch specification.

Now you need to transfer everything together with submodules. Sounds like a fun and challenging project. Let me know if you need more help.

Hope this helps.

+2
source

Source: https://habr.com/ru/post/1344799/


All Articles