Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git remove all branches except master windows

git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #git #remove #branches #master #windows
ADD COMMENT
Topic
Name
8+7 =