10.4 Keeping Up-to-Date with a Subversion Repository
Whether you are communicating with an active Subversion
repository or you used git svn clone -r ...
to
make your initial clone, you can pull changes from your Subversion repository in two ways.
The first is git svn fetch
. It pulls all
the remote changes into their remote branch but doesn’t try to merge
them into your local branch. This is also the command you use to grab
new branches from Subversion.
The second, and the one that gets more use, is git svn rebase
.
It works like git svn fetch
followed by
git rebase
. It pulls all the commits
from your upstream Subversion repository and then rebases your current branch
against the remote branch.
Just like with git rebase
, if you have a local ...
Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.