Multiple svn projects into one git repository?
Posted
by trondgzi
on Stack Overflow
See other posts from Stack Overflow
or by trondgzi
Published on 2009-05-22T15:47:13Z
Indexed on
2010/05/07
23:18 UTC
Read the original article
Hit count: 171
git-svn
Hi,
I have started to use git-svn for some of my work to be able to do local commits. This works great for projects that use standard svn layout. Recently I started working on a Java project that is split into multiple connected modules (20-25), and each module have its own root folder in the same svn repo with its own trunk/branches/tags.
svnrepo/
module-1
trunk
branches
tags
module-N
trunk
branches
tags
I have cloned each and every module with git svn clone -s /path/to/svnrepo/module[1-N]. The "problem" is that when I want to do git svn rebase on all modules i have to do it N times.
I have tried to do git svn clone /path/to/svnrepo/ do avoid doing the rebase operation N times, but that leaves me with a directory layout that is the same as in the svn repo.
Is there a way that I can track all the trunks of all modules in one git repo? So that I get a directory layout like this within my git repository:
module-1
module-2
module-N
© Stack Overflow or respective owner