Skip to content

Instantly share code, notes, and snippets.

@thebadmonkeydev
Last active August 10, 2016 19:18
Show Gist options
  • Save thebadmonkeydev/15ae46b8cb86e9a21af48671a8b2114d to your computer and use it in GitHub Desktop.
Save thebadmonkeydev/15ae46b8cb86e9a21af48671a8b2114d to your computer and use it in GitHub Desktop.
Delete all local merged branches except master
git branch | grep -ve " master$" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment