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?
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/*
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.