Last active
August 18, 2017 00:20
-
-
Save bialikover/87ad875031ea0f8d8f0a to your computer and use it in GitHub Desktop.
git branch purge/prune alias
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 gbpurge='git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | grep -v "staging" | xargs -n 1 git branch -d' | |
| alias gbprune='git remote prune origin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment