git branch | grep "<pattern>" | xargs git branch -D
Where are:
1st part gets all local branches
2nd part selects by pattern only
3rd part deletes selected branches
Links:
https://dev.to/lauragift21/git-delete-multiple-branches-5537
https://www.codegrepper.com/code-examples/shell/git+delete+multiple+branches+local
https://git-scm.com/docs/gittutorial
No comments:
Post a Comment