Skip to content

Instantly share code, notes, and snippets.

@johnrees
Created August 5, 2013 22:23
Show Gist options
  • Save johnrees/6160131 to your computer and use it in GitHub Desktop.
Save johnrees/6160131 to your computer and use it in GitHub Desktop.
Delete all merged branches for current branch in git
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