Open the terminal, or equivalent. Type in git branch | grep "" for a preview of the branches that will be deleted. Type in git branch | grep "" | xargs git branch -D.