I'm using git-svn
to work against my company's central svn
repository. We've recently created a new feature branch in the central repo. How do I tell git
about it? When I run git branch -r
I can only see the branches that existed when I ran fetch
against the svn
repo to initialize my git
repo?
views:
1196answers:
2
+3
A:
It appears I just needed to git svn fetch
; somehow I had convinced myself that would fetch the entire repo instead of just the changes.
Hank Gay
2008-11-17 21:26:29
That's the solution but not the correct answer..
mitjak
2010-07-22 19:32:17
+9
A:
You can manually add the remote branch,
git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/
git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch
git svn fetch newbranch [-r<rev>]
git checkout -b local-newbranch -t newbranch
git svn rebase newbranch
vjangus
2009-09-16 03:23:25