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 coderwall.com #
 
PREVIOUS NEXT
Tagged: #delete #local #branches #current #branch
ADD COMMENT
Topic
Name
5+1 =