Answers for "git branch delete all local branches"

11

delete all local branches git

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

git branch delete all local branches

// hard delete

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

git delete all local branches

git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D
Posted by: Guest on December-10-2020

Code answers related to "git branch delete all local branches"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language