Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fetch/clone only a few branches using git-svn?

Tags:

The SVN repository that I am working with has a rather large number of branches. I am only interested in working with three of them and maybe another new SVN branch that will be created in the future. What I have figured out so far is that the command git svn clone URL -T trunk -b branches -t tags will clone all SVN branches and subsequent git svn fetch commands will also operate on all SVN branches.

Is there a way for me to specify the few branches that I want to work with? I most likely don't have enough disk space for all the SVN branches on my dev machine and I'd like to avoid an extremely time-consuming git svn clone operation.

like image 237
sigjuice Avatar asked Dec 12 '09 03:12

sigjuice


1 Answers

Multiple branches using git-svn shows how to selectively add Subversion branches to a git-svn repository.

like image 110
Greg Bacon Avatar answered Oct 11 '22 17:10

Greg Bacon