Last active
May 4, 2022 09:09
-
-
Save davideicardi/0c39251dfa639e31d194211e0ead9a68 to your computer and use it in GitHub Desktop.
Remove all GIT branches that match a specific name using 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
# 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