Last active
August 9, 2017 06:50
-
-
Save sirkonst/bc4ae780766dfb7d5759a3f243dd9d82 to your computer and use it in GitHub Desktop.
git cleanup -- remove all already merged branches (excludes: master, develop, release)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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