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

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.

  • Can a branch be made from a previous changeset?
  • Git for game server configuring?
  • Putting uncommitted changes at Master to a new branch by Git
  • Git branch. How to assign a commit to a branch?
  • What branching strategy should I use during the development/maintenance of a web application?
  • creating branch just for merge
  • Why won't git-daemon serve my repository?
  • What's the correct way to check if it's possible to perform a fast-forward merge with git merge-base?
  • Git release process with only one eternal branch
  • Delete and ignore file from git, but do not delete everywere
  • GIT .mailmap works per repo, but not in global, why?
  • Mac OS X - Git repository at user home
  • One Solution collect form web for “How do I fetch/clone only a few branches using git-svn?”

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

    Git Baby is a git and github fan, let's start git clone.