Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PaulEhrhardt/0209e82768188afb155375b0c2a85c2a to your computer and use it in GitHub Desktop.
Save PaulEhrhardt/0209e82768188afb155375b0c2a85c2a to your computer and use it in GitHub Desktop.
Delete all merged local branches
git branch --merged | grep -v "\*" | grep -v master | grep -v develop | grep -v release | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment