Skip to content

Instantly share code, notes, and snippets.

@robertolos
Last active January 17, 2018 10:41
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 robertolos/e00735971d5c2b235d2af4b4e4613fd6 to your computer and use it in GitHub Desktop.
Save robertolos/e00735971d5c2b235d2af4b4e4613fd6 to your computer and use it in GitHub Desktop.
Bulk remove of git branches from local and remote
#removes all the branch starting with HP-14
git branch -a | awk -F/ '/\/HP-14/{print $3}' | xargs -I {} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment