Created
March 11, 2014 00:29
-
-
Save n0f3/9477282 to your computer and use it in GitHub Desktop.
Delete remote branches containing a specific substring in the name
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
for fstring in $(git for-each-ref --format="%(refname:short)" refs/remotes/origin/f_qa\*); do j=`echo $fstring | cut -d / -f 2`;j=$j;echo $j; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment