Skip to content

Instantly share code, notes, and snippets.

@davideicardi
Last active May 4, 2022 09:09
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 davideicardi/0c39251dfa639e31d194211e0ead9a68 to your computer and use it in GitHub Desktop.
Save davideicardi/0c39251dfa639e31d194211e0ead9a68 to your computer and use it in GitHub Desktop.
Remove all GIT branches that match a specific name using bash
# Remove all GIT branches starting with `fix/`, just locally
git branch | grep fix/ | xargs -I '{}' git branch -d '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment