Skip to content

Instantly share code, notes, and snippets.

@originalhat
Last active August 29, 2015 14:16
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 originalhat/c30aafa50baf7c264955 to your computer and use it in GitHub Desktop.
Save originalhat/c30aafa50baf7c264955 to your computer and use it in GitHub Desktop.
delete remote git branches

Delete All Remote Branches

git branch -r | awk -F/ '/\/dgb/{print ":" $2 "/" $3 "/" $4}' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment