Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to delete all branches in git except master

$ git branch | grep -v '^*' | xargs git branch -D
Source by www.hacksparrow.com #
 
PREVIOUS NEXT
Tagged: #delete #branches #git #master
ADD COMMENT
Topic
Name
2+9 =