Skip to content

Instantly share code, notes, and snippets.

@taylorqj
Created April 2, 2015 18:08
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 taylorqj/fb084b2c05236213eded to your computer and use it in GitHub Desktop.
Save taylorqj/fb084b2c05236213eded to your computer and use it in GitHub Desktop.
Git Cleanup
// To delete local branches which have alread been merged into current 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