Last active
December 23, 2021 08:41
-
-
Save skylock/5d00d27640d04219b3ad9752a89752de to your computer and use it in GitHub Desktop.
git delete multiple brabches on remote using 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
g branch -r --merged master | grep 'searchedBranch*' | sed 's/remotes\/origin\///' | xargs git push --delete origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment