A word of warning: I'm a n00b to git
in general. My team uses feature branches in svn
, and I'd like to use git-svn
to track my work on a particular feature branch. I've been (roughly) following Andy Delcambre's post to set up my local git
repo, but those instructions seem to have led git
to pick the svn
branch that had changed most recently as the remote repository; the problem is that's not the branch I care about. How do I control which branch git-svn
uses? Or am I approaching this completely wrong?
UPDATE: I did use the -T
, -b
, and -t
options (in my case because the svn
repo has multiple projects, but I want the git
repo to contain only the project I'm working on).
Muchas gracias to Bart's Blog for this handy reference for svn branches in git. Apparently all I needed was to specify a remote branch when creating the git
branch, e.g.,
git checkout -b git-topic-branch-foo foo
where foo
is the name of the remote branch.