Skip to content

Instantly share code, notes, and snippets.

View kupriyanenko's full-sized avatar

Alexey Kupriyanenko kupriyanenko

View GitHub Profile
@kupriyanenko
kupriyanenko / delete-remote-merged.sh
Last active August 29, 2015 14:16 — forked from schacon/gist:942899
Delete merged remote branches
$ git remote prune origin &&
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete