Answers for "git delete all branches except master"

11

how to delete all branches except master

$ git branch | grep -v "master" | xargs git branch -D
Posted by: Guest on May-27-2020
1

git delete all branches except master

git branch | grep -v "master" | xargs git branch -D
Posted by: Guest on May-18-2020
1

git remove all branches except master windows

git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Posted by: Guest on October-13-2020
0

how to delete all branches in git except master

$ git branch | grep -v '^*' | xargs git branch -D
Posted by: Guest on June-07-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language