Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Last active April 4, 2018 04:59
Show Gist options
  • Save sethdavis512/f8ca11ba04723ca7979bfa05443f95a6 to your computer and use it in GitHub Desktop.
Save sethdavis512/f8ca11ba04723ca7979bfa05443f95a6 to your computer and use it in GitHub Desktop.
# Safety First
git branch | grep ‘your_string_here’
# Delete'em
git branch | grep 'your_string_here' | xargs git branch -D
# Delete Remote too
git branch | grep ‘your_string_here’ | xargs git push origin — delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment