Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep remove branches

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.
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #grep #remove #branches
ADD COMMENT
Topic
Name
2+6 =