Found the proper sequence. I needed to tag the new patch branch so I can refer to it symbolically.
git checkout git-svn -B master
git rebase --onto git-svn current-work-base work
git svn dcommit
git checkout -B work
git cherry-pick mypatch^0
git tag -f current-work-base
The tag current-work-base
must point to the patch that comes after git-svn
This solution can work in a Windows batch file as well no need for bash. (just change ^
to ^^
)
Please note that when rebasing the work branch, the current-work-base
tag needs to be updated again.