Last active
June 25, 2020 21:31
-
-
Save rberrelleza/a0b2ed11b53ad94b33949811fac88663 to your computer and use it in GitHub Desktop.
clean git branches
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 | grep -v 'master\|main' > /tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -D </tmp/merged-branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment