It is currently not possible to remove the SVN branch using git-svn. But deleting a branch using SVN is easy without even checking it. Just enter
svn rm $URL/branches/the_branch
Note that deleting a Subversion branch does not remove it from the git-svn repository. (This is intentional, since deleting the Subversion branch does not lead to loss of information, while deleting the git branch makes it forget its existence after the next git garbage collection.) Therefore, if you want the remote SVN branch to be deleted from the git repository, you should do this is manual:
git branch -D -r the_branch rm -rf .git/svn/the_branch OR rm -rf .git/svn/refs/remotes/f8745/ (for newer versions)
To remove the git branch that matches the Subversion tag, the commands are slightly different:
git branch -D -r tags/the_tag rm -rf .git/svn/tags/the_tag
mhagger Dec 03 '09 at 13:18 2009-12-03 13:18
source share