Last active
May 19, 2022 09:29
-
-
Save emersondemetrio/f771508de5373a3c9a767b46d87efcfb to your computer and use it in GitHub Desktop.
Deleting Branchs with bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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