Last active
October 9, 2022 15:02
-
-
Save ssyrota/78c48eab24ac99a23921cca25d4e6d1e to your computer and use it in GitHub Desktop.
Remove git remote branches by pattern
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
git branch -r | awk -Forigin/ '/\/MOCKED_PATTERN/ {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