Created
November 6, 2022 22:07
-
-
Save lorddev/80325d711a2cba223a9d59279eddad39 to your computer and use it in GitHub Desktop.
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 --merged | egrep -v "(^\*|master|main|dev|develop)" | xargs git branch -d | |
git branch -r --merged | grep -v master | grep -v main | grep -v dev | grep -v develop | sed 's/origin\///' | xargs -n 1 git push --delete origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment