Skip to content

Instantly share code, notes, and snippets.

@emersondemetrio
Last active May 19, 2022 09: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 emersondemetrio/f771508de5373a3c9a767b46d87efcfb to your computer and use it in GitHub Desktop.
Save emersondemetrio/f771508de5373a3c9a767b46d87efcfb to your computer and use it in GitHub Desktop.
Deleting Branchs with bash
#!/bin/bash
while read -r branch;
do echo "deleting: $branch";
git branch -D $branch;
done <<< `git branch | grep 'bugfix'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment