Answers for "delete all local branches git"

11

delete all local branches git

$ 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
0

git branch delete all local branches

// hard delete

git branch -D $(git branch)
Posted by: Guest on December-16-2020

Code answers related to "delete all local branches git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language