Skip to content

Instantly share code, notes, and snippets.

@rglepper
Created September 25, 2014 05:19
Show Gist options
  • Save rglepper/d82e50d2a4c665e898fd to your computer and use it in GitHub Desktop.
Save rglepper/d82e50d2a4c665e898fd 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