Just a note, I would upgrade to git 1.7.10. You may be getting answers here that won't work on your version. My guess is that you would have to prefix the branch name with refs/heads/
.
CAUTION, proceed with the following only if you made a copy of your working folder and .git directory.
I sometimes just go ahead and delete the branches I don't want straight from .git/refs/heads
. All these branches are text files that contain the 40 character sha-1 of the commit they point to. You will have extraneous information in your .git/config
if you had specific tracking set up for any of them. You can delete those entries manually as well.