On Thursday, April 3, 2014 12:46:41 PM UTC-7, Magnus Therning wrote:
>
> On Thu, Apr 03, 2014 at 10:28:12AM -0700, Phil Cruz wrote: 
> > I need some guidance on how to import our existing SVN repo to Git. The 
> > structure of the repo is not exactly standard. Say we have 2 versions of 
> > our app in the repo, Version1, the currently shipping version and 
> Version2, 
> > the next version in development. The SVN structure is like 
> > 
> > /branches 
> >     /Version1_some_branch 
> >     /Version2_feature_branch1 
> > 
> > /tags 
> >     /Version1 
> >         /build_1 
> >         /build_2 
> >     /Version2 
> >         /build_1 
> > /releases 
> >     /Version1 
> >         /Release_1.0 
> >         /Releale_1.1 
> > /trunk 
> >     /Version1 
> >     /Version2 
> > 
> > 
> > There's actually more but this conveys the basic structure. I'm fine 
> > with not trying to migrate the entire repo with all the history and 
> > tags and releases. There's a lot of extraneous stuff like binary 
> > files and I think we'll be better off to start relatively clean. If 
> > possible I would like to import the working trunks/branches with 
> > history. So something like 
> > 
> > /trunk/Version1 becomes the "master" branch 
> > /trunk/Version2 becomes "Version2" branch 
> > /branches/Version2_feature_branch1 becomes "Version2_feature_branch1" 
> > /branches/Version1_some_branch becomes "Version1_some_branch" 
> > 
> > Is there a way to do something like that? 
>
> I'd consider that layout very ordered and clean actually. :) 
>
> If you are looking at using git-svn for the conversion, then pay 
> notice to this part of the man-page: 
>
>   You can specify more than one --tags and/or --branches options, in 
>   case your Subversion repository places tags or branches under 
>   multiple paths. 
>
> This seems to be exactly the thing you need. 
>
> If you are looking at using subgit then it too allows for picking up 
> tags and branches in multiple places. 
>
> /M 
>
> -- 
> Magnus Therning                      OpenPGP: 0xAB4DFBA4 
> email: mag...@therning.org <javascript:>   jabber: 
> mag...@therning.org<javascript:> 
> twitter: magthe               http://therning.org/magnus 
>
>
>

So I'm doing git svn clone --prefix=svn/ clone file:///path/to/svn/ 
new_git_repo --trunk=trunk/Version1 -b branches -b trunk/Version2 

everything in /branches is coming over but trunkVersion2 is not showing up 
as a branch. Any ideas?

Thanks,
Phil

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to