Daniel Doubrovkine bio photo

Daniel Doubrovkine

aka dB., CTO at artsy.net, fun at playplay.io, NYC

Email Twitter LinkedIn Github
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.