Skip to content

Instantly share code, notes, and snippets.

@aroemen
Created February 12, 2013 16:58
Show Gist options
  • 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