Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git clean local branches

git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #clean #local #branches
ADD COMMENT
Topic
Name
7+4 =