Last active
November 15, 2023 14:36
-
-
Save jabarihunt/80f0456374a679ac1747646c695c119a to your computer and use it in GitHub Desktop.
Delete All Release Branches
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
# Deletes all local AND remote release branches | |
git branch -D `git branch --list 'release/*'` && git push origin --delete `git branch --list 'release/*'` | |
# Works great as a package.json, composer.json, etc script... | |
"scripts": { | |
"delete-release-branches": "git branch -D `git branch --list 'release/*'` && git push origin --delete `git branch --list 'release/*'`" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment