Git: Deleting Merged Branches

Back | git | 6/9/2011 |
  1. git branch --merged | grep -v master | xargs git branch -d
  2. 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.