git branch | grep "pattern" | xargs git branch -d