Skip to content

Instantly share code, notes, and snippets.

@MollsReis
Created May 25, 2017 18:12
Show Gist options
  • Save MollsReis/ec48e9363dbf58811778374d0bd8100b to your computer and use it in GitHub Desktop.
Save MollsReis/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