Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete branches in bulk git

Type in git branch | grep "<pattern>" for a preview of the branches that will be deleted.
Type in git branch | grep "<pattern>" | xargs git branch -D.
 
PREVIOUS NEXT
Tagged: #delete #branches #bulk #git
ADD COMMENT
Topic
Name
4+2 =