Skip to content

Instantly share code, notes, and snippets.

@dca
Created September 28, 2018 10:14
Show Gist options
  • Select an option

  • Save dca/d7b35f926f5a6173c68885e7779229a9 to your computer and use it in GitHub Desktop.

Select an option

Save dca/d7b35f926f5a6173c68885e7779229a9 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment