git svn - restricting git-svn activity to a single git branch -
I'm using git-svn to work with a svn repository. I have GIT Master Branch SVN Tracking, and there are many local GIT branches. Is there a way to set things up, if I run git svn rebase
or git svn dcommit
on a git branch other than master
Just nothing to do?
Scripting in the rescue!
Create a shell script:
curBranch () {r = $ (git symbolic-reef head) $ {r ## refs / heads}} ["master" == "$ (curBranch)" echo)] | | Exit 0 git svn "$ @"
and run it as an argument with your chosen git-svn sub command.
Comments
Post a Comment