Skip to content

Instantly share code, notes, and snippets.

=============================== Coverage summary ===============================
Statements : 82.96% ( 3929/4736 )
Branches : 62.72% ( 577/920 ), 5 ignored
Functions : 78.3% ( 534/682 )
Lines : 82.23% ( 3096/3765 )
================================================================================
@dca
dca / gist:d7b35f926f5a6173c68885e7779229a9
Created September 28, 2018 10:14
git cleanup merged remote branch script
$ git push origin --delete $(git branch -r --merged origin/master | grep origin | egrep -v '>|master|develop' | cut -d/ -f2-)
// https://gist.github.com/schacon/942899#gistcomment-2338002