Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GIT Snippets
## Delete local branches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
## Delete local branches
git fetch --prune && git branch | egrep -v "(^\*|master|develop)" | 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.