Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GIT Snippets
## Delete local braches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
## Delete local braches
git fetch --prune && git branch | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.