Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete all local branches except current branch

git branch | grep -v "master" | grep -v ^* | xargs git branch -D
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #delete #local #branches #current #branch
ADD COMMENT
Topic
Name
2+8 =