Skip to content

Instantly share code, notes, and snippets.

@guiltry
Created April 24, 2015 09:41
Show Gist options
  • Save guiltry/808cdbdbd42ec2286cbb to your computer and use it in GitHub Desktop.
Save guiltry/808cdbdbd42ec2286cbb to your computer and use it in GitHub Desktop.
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
grep -v development |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment