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.

  • git: rename local branch failed
  • git - update fork's master & rebase my branch onto it?
  • Git workflow - changing branch and slow recompiles
  • How to determine branch name from batch file
  • How do you delete a remote git branch “properly”, a.k.a. updating the remote branch list for all users?
  • x86 assembly instruction execution count
  • How do I configure remote refs for git + capistrano 3 in ROR deployment?
  • git-update-server-info not sufficient to clone remote repo?
  • Locate Git installation folder on Mac OS X
  • how to manage obsolete branches on github
  • Can't push branch to github “Use”
  • Can I use an ssh key for Azure git push deployment?
  • 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.