Skip to content

Instantly share code, notes, and snippets.

@gusano
Created April 8, 2013 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gusano/5336265 to your computer and use it in GitHub Desktop.
Save gusano/5336265 to your computer and use it in GitHub Desktop.
Delete all branches that are already merged into the currently checked out branch.
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
@mroderick
Copy link

Till told me about this excellent tool:

https://github.com/mloughran/git-cleanup

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