Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete mulitple git branch

// git remove multiple branch
// here pattern refers to few characters of branch name that is common between multiple branches

// delete branch locally
git branch | grep "pattern" | xargs git branch -d

// delete local branch that is unmerged
git branch | grep "pattern" | xargs git branch -D
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #delete #mulitple #git #branch
ADD COMMENT
Topic
Name
4+3 =