Answers for "git delete merged branches"

2

git delete merged branches

git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Posted by: Guest on November-03-2020
0

delete all feature branches

git branch --merged | grep -v '^* master$' | grep -v '^  master$' | xargs git branch -d
Posted by: Guest on December-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language