Duplicate
How do I make git-svn use a particular svn branch as the remote repository?
I am using git-svn to track development by someone else on svn. I'm trying to figure out how to use gti-svn to switch from one svn branch to another. All the examples I have able to find talk about using svn switch as method to switch location instead of actual branches.
Essentially, I would like to start pulling from /svn/branch/1.3 instead of /svn/branch/1.2 using svn fetch.
If you've cloned the SVN repository properly (using
-T -b -t
or-s
), you should be able to use the git branch commands like:etc.
These commands have been incredibly useful for me when working on svn branches via git-svn:
See full explanation in my article on justaddwater.dk.
From my experience, it works fine doing just
The
local/
prefix is not needed, and it is less confusing to me to leave it out. The oldRELEASE-0.12
branch is already a remote branch, so git will not confuse it with the new branch.The command above will not create a tracking branch relationship. But that is not needed,
git svn rebase
works as expected anyway.