Created
May 6, 2021 09:55
-
-
Save jamie94bc/faa38f4a9bb7c5e7ba0fe0b51f556887 to your computer and use it in GitHub Desktop.
Script to delete merged branches in git
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 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