I converted a Subversion repository to Git a couple weeks ago. I'm left with a bunch of branches I no longer need, but can't delete. What's worse, in the process of trying to get rid of the svn/whatever branches, I now find myself with branches with "origin" duplicated. Here's a fragment of my branch list:
% git branch -a | egrep 'svn/partial|master'
* master
origin/master
origin/origin/master
svn/partial
remotes/origin/master
remotes/origin/origin/master
remotes/svn/partial
I appear to be able to delete the svn/partial branch, but not the remotes/svn/partial branch:
% git branch -D svn/partial
Deleted branch svn/partial (was 373a64c).
% git branch -D remotes/svn/partial
error: branch 'remotes/svn/partial' not found.
If I git-fetch, svn/partial is recreated, and I get another layer of "origin/" branches:
% git push
Everything up-to-date
% git fetch
From .
...
* [new branch] origin/origin/origin/master -> origin/origin/origin/master
...
* [new branch] svn/partial -> svn/partial
Yikes! They are multiplying like tribbles:
% git br -a | egrep 'svn/partial|master'
* master
origin/master
origin/origin/master
origin/origin/origin/master
svn/partial
remotes/origin/master
remotes/origin/origin/master
remotes/origin/origin/origin/master
remotes/svn/partial
How do I fix this?