Skip to content

Instantly share code, notes, and snippets.

@ghernandez345
Last active July 31, 2017 09:30
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 ghernandez345/b208e6e2b059f07dd847282285554a4f to your computer and use it in GitHub Desktop.
Save ghernandez345/b208e6e2b059f07dd847282285554a4f to your computer and use it in GitHub Desktop.
Clean up local branches based on merged remote branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment