Question

Does it matter which local GIT branch I'm on when I do git svn rebase? A lot of times I'm on a local-only branch (like trunk_work) that I keep in sync with my local trunk branch, which maps to the upstream SVN branch. I always have to switch to trunk and then do the rebase, but I'm wondering if it works inside trunk_work too? It seems like this rebase isn't your typical rebase because git-svn is smart enough to know which local branches map to SVN branches and updates them all. But I want to make sure. Thanks.

Was it helpful?

Solution

According to git help svn:

    rebase
       This fetches revisions from the SVN parent of the current HEAD and
       rebases the current (uncommitted to SVN) work against it.

...which I take to mean git svn rebase works on the current branch only, so it does matter which branch you are on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top