Delete all git branches except current

git branch | grep -v "^\\*" | xargs git branch -D 

Leave a Reply