Skip to content

Instantly share code, notes, and snippets.

@ikhattab
Last active September 4, 2016 11:57
Show Gist options
  • Save ikhattab/1d7b7b1e73980b83aeb9 to your computer and use it in GitHub Desktop.
Save ikhattab/1d7b7b1e73980b83aeb9 to your computer and use it in GitHub Desktop.
Delete all git branches which have been merged
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
@ikhattab
Copy link
Author

ikhattab commented Sep 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment