Difference between 'git svn rebase' and 'git rebase trunk'

I am using git -svn for my project.

What is the difference between git svn rebase

and git rebase trunk

?

Does it run on the master git svn rebase

in basically the same way as it git rebase trunk

does on master?

+3


source to share


1 answer


Not. git svn rebase

is equivalent to doing the following:

git svn fetch --parent
git rebase remotes/trunk

      



(This assumes the Git branch you are working on is based on remotes/trunk

, if it is based on another Subversion branch it will redistribute to the correct branch.)

The difference is that it git svn rebase

checks out the last code from Subversion before rebasing, and also automatically checks out the correct remote branch to bounce.

+4


source







All Articles