Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete local branch

[alias]
  gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D"
Source by www.erikschierboom.com #
 
PREVIOUS NEXT
Tagged: #git #delete #local #branch
ADD COMMENT
Topic
Name
6+4 =