Created
December 1, 2017 07:12
-
-
Save ygit/3e4732a02107f821694d80b72f13e4f7 to your computer and use it in GitHub Desktop.
Delete multiple remote branches in git
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
git branch -r | awk -F/ '/\/PREFIX/{print $2}' | |
git branch -r | awk -F/ '/\/PREFIX/{print $2}' | xargs -I {} git push origin :{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment