Skip to content

Instantly share code, notes, and snippets.

@aroemen
Created February 12, 2013 16:58
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 aroemen/4771334 to your computer and use it in GitHub Desktop.
Save aroemen/4771334 to your computer and use it in GitHub Desktop.
Deletes all local branches that have been merged into HEAD
git branch -d `git branch --merged | grep -v '^*' | tr -d '\n'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment