Skip to content

Instantly share code, notes, and snippets.

@mirie
Created March 18, 2016 18:58
Show Gist options
  • Save mirie/0176ce6c09dc37cd4751 to your computer and use it in GitHub Desktop.
Save mirie/0176ce6c09dc37cd4751 to your computer and use it in GitHub Desktop.
delete all merged branches
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