Skip to content

Instantly share code, notes, and snippets.

@n0f3
Created March 11, 2014 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0f3/9477282 to your computer and use it in GitHub Desktop.
Save n0f3/9477282 to your computer and use it in GitHub Desktop.
Delete remote branches containing a specific substring in the name
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