Skip to content

Instantly share code, notes, and snippets.

@abcdefg30
Forked from schacon/gist:942899
Last active November 26, 2015 21:36
Show Gist options
  • Save abcdefg30/d0c8d4ea6a69d9878b94 to your computer and use it in GitHub Desktop.
Save abcdefg30/d0c8d4ea6a69d9878b94 to your computer and use it in GitHub Desktop.
$ git branch -r --merged |
grep REMOTE_NAME |
grep -v master |
xargs git branch -r -D
Besser:
git branch -r --merged | grep -v bleed | grep -v master | grep -v next | xargs git branch -r -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment