Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to delete all branches in git local

git branch | grep -v "main" | xargs git branch -D
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #delete #branches #git #local
ADD COMMENT
Topic
Name
2+6 =