Shell/Bash: git delete merged branches Example


Shell/Bash Example: This is the "git delete merged branches" Example. compiled from many sources on the internet by

git delete merged branches

git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d

delete all feature branches

git branch --merged | grep -v '^* master$' | grep -v '^  master$' | xargs git branch -d

* Summary: This "git delete merged branches" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!