I am working on a project where SVN
repo contains duplicate repositories
/trunk/project_v1
/trunk/project_v2
/trunk/project_tomcat_migration_v3
/trunk/empService1
/trunk/empService2
/trunk/empService_random_string_v3
.
.
Tags
also contains duplicate repositories.
git svn
command.git svn
is there any way to clone SVN repo and it to the branch of existing git repo git svn clone http://url/trunk//trunk/project_v2 --separate_branch_on_existing_repo
Use svn2git. You can use paths specify which repo.
https://github.com/svn-all-fast-export/svn2git
create repository project_v1
end repository
create repository project_v2
end repository
match /trunk/project_v1/
repository project_v1
branch master
end match
match /trunk/project_v2/
repository project_v2
branch master
end match
Note: tags are branches in SVN and must be declared a little different. ([^/]+)/
is used to match tag name.
match /tags/project_v1/([^/]+)/
repository project_v1
branch refs/tags/\1
annotated=true
end match