Created
November 7, 2019 10:12
-
-
Save checco/9d14165b2baafec0152f1759ecd56613 to your computer and use it in GitHub Desktop.
Remove all merged GIT 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
#!/bin/bash | |
git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment