Skip to content

Instantly share code, notes, and snippets.

@sirkonst
Last active August 9, 2017 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirkonst/bc4ae780766dfb7d5759a3f243dd9d82 to your computer and use it in GitHub Desktop.
Save sirkonst/bc4ae780766dfb7d5759a3f243dd9d82 to your computer and use it in GitHub Desktop.
git cleanup -- remove all already merged branches (excludes: master, develop, release)
[alias]
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop\\|release' | xargs -n 1 git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment