Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Remove All Local Branches not on Remote

$ git branch -r | egrep -v -f /dev/fd/0  <(git branch -vv | grep origin) | xargs git branch -d
Source by www.ahmedbouchefra.com #
 
PREVIOUS NEXT
Tagged: #Remove #All #Local #Branches #Remote
ADD COMMENT
Topic
Name
1+4 =