Last active
January 17, 2018 10:41
-
-
Save robertolos/e00735971d5c2b235d2af4b4e4613fd6 to your computer and use it in GitHub Desktop.
Bulk remove of git branches from local and remote
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
#removes all the branch starting with HP-14 | |
git branch -a | awk -F/ '/\/HP-14/{print $3}' | xargs -I {} git push origin :{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment