Porting svn repo to git. Multiple applications in svn repo need to be split into separate git repositories

I have svn repo with various applications as a subdirectory of one svn repo. This worked because I could check in part, the repo. Since I cannot do this with git, obviously I need several repositories. I want to keep commit history in git export. What is the easiest way to do this?

+3
source share
1 answer

You do not need to specify the root directory for cloning. You can do it as follows:

git svn clone svn://repository/subdirectory_of_app1 app1
git svn clone svn://repository/subdirectory_of_app2 app2
...

If you have trunk / branch / tag folders in each application folder, you can also add additional arguments:

git svn clone svn://repository/subdirectory_of_app1 -T trunk -t tags -b branches app1
...
+5

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


All Articles