Skip to content

Instantly share code, notes, and snippets.

View chwastek's full-sized avatar

Filip Chwastowski chwastek

View GitHub Profile
@chwastek
chwastek / gist:e16c439dbd74c6ca6796977a4f7d157b
Created October 26, 2018 10:24 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ 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