Skip to content

Instantly share code, notes, and snippets.

@rgazelot
Created January 15, 2020 08:01
Show Gist options
  • Save rgazelot/299ca62d11fc9d6283f56a9ae2b41675 to your computer and use it in GitHub Desktop.
Save rgazelot/299ca62d11fc9d6283f56a9ae2b41675 to your computer and use it in GitHub Desktop.
Remove merged local branches
git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment