Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete local branches not on remote

git branch -vv | grep ': gone]'|  grep -v "*" | awk '{ print $1; }' | xargs -r git branch -D
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #local #branches #remote
ADD COMMENT
Topic
Name
8+3 =