git branch --merged | grep -v master | xargs git branch -d
git branch -r --merged | awk -F'/' '/^ \*origin/{if(!match($0, /(>|master)/)){print $2}}' | xargs git push origin --delete
Here’s the same in a Gist for you to comment and improve.
git branch --merged | grep -v master | xargs git branch -d
git branch -r --merged | awk -F'/' '/^ \*origin/{if(!match($0, /(>|master)/)){print $2}}' | xargs git push origin --delete
Here’s the same in a Gist for you to comment and improve.