Skip to content

Instantly share code, notes, and snippets.

@mbarrben
Created May 16, 2014 07:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbarrben/f24f05473aa56539940b to your computer and use it in GitHub Desktop.
Save mbarrben/f24f05473aa56539940b to your computer and use it in GitHub Desktop.
#To delete all branches that are already merged into the currently checked out branch:
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment