Answers for "how to delete all local branches except master"

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
0

remove all branch local git

git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
Posted by: Guest on March-18-2022

Code answers related to "how to delete all local branches except master"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language