Skip to content

Instantly share code, notes, and snippets.

@rhberro
Last active November 19, 2016 02:53
Show Gist options
  • Save rhberro/61af87375befc3f190afb653707b6981 to your computer and use it in GitHub Desktop.
Save rhberro/61af87375befc3f190afb653707b6981 to your computer and use it in GitHub Desktop.
// This should remove all the local branches that are already merged into the currently checked out branch.
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment