Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete local branch

# HowTo delete multiple git branches on MAC / Linux / Unix environments 
# git branch | grep "<RegXpattern>" | xargs git branch -D
# here's an example to delete multiple branches that starts with "branch"
git branch | grep "branch*" | xargs git branch -D
Source by app.tettra.co #
 
PREVIOUS NEXT
Tagged: #git #delete #local #branch
ADD COMMENT
Topic
Name
2+5 =