Skip to content

Instantly share code, notes, and snippets.

@freemanirl
Created May 2, 2017 20:26
Show Gist options
  • Save freemanirl/7048c4c10b5d38a3269fccb9cd9d3e33 to your computer and use it in GitHub Desktop.
Save freemanirl/7048c4c10b5d38a3269fccb9cd9d3e33 to your computer and use it in GitHub Desktop.
Git Delete Merged Local Branches
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