git-svn: update only till a specific revision in svn

27 Oct

tracking a svn-repository using git-svn…

usually, you want to be up to date with svn and thus use “git svn rebase” to fetch changes from SVN, but what to do if you don’t want to update to the latest revision but, say, just fetch one (or 5…) new revision?

solution: use “fetch” and “rebase” in combination with the “—local” parameter:

git svn fetch --revision 3055:3060
git svn rebase --local