Answers for "delete all local git branch except"

18

delete all local branches git

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

Remove all your local git branches but keep master

git branch | grep -v “master” | xargs git branch -D
Posted by: Guest on August-06-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language