Add a new subversion remote into existing Git repository

git, svn

Solution

It is. `git svn init` only edits the default svn remote, you'll have to edit the config file.

Look in `.git/config`, copy and alter the existing svn-remote section, and run `git svn fetch`. For example:

[svn-remote "svn2"]
        url = http://bzzz.googlecode.com/svn
        fetch = trunk:refs/remotes/svn2/trunk
        branches = branches/*:refs/remotes/svn2/*
        tags = tags/*:refs/remotes/svn2/tags/*

Problem

I have a git repository fully tracking a remote SVN repo. Now I need to add a new branch that will be tracking a directory in a completely different SVN repo. Is that possible?

Original source