Last active
October 21, 2016 00:00
-
-
Save jonas/afa5728d4bcd13e0d0b594d712dfb8ac to your computer and use it in GitHub Desktop.
This file contains 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] | |
prune-remotes = "!f() { for r in $(git remote); do git remote prune $r; done; }; f" | |
#prune-branches = "!f() { git prune-remotes; git branch --merged | sed -n 's/.*\\(version\\|bugfix\\|feature\\|jonas\\)/\\1/p' | xargs -n 1 git branch -d $b; }; f" | |
prune-branches = "!f() { git prune-remotes; git branch --merged | sed -n 's/[ *]*\\([a-z].*\\)/\\1/p' | grep -v master | xargs -n 1 git branch -d ; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment