Skip to content

Instantly share code, notes, and snippets.

@EvilScott
Created May 25, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvilScott/ec48e9363dbf58811778374d0bd8100b to your computer and use it in GitHub Desktop.
Save EvilScott/ec48e9363dbf58811778374d0bd8100b to your computer and use it in GitHub Desktop.
Remove merged local branches
git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment