Skip to content

Instantly share code, notes, and snippets.

@ajtrichards
Created December 25, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajtrichards/3fbe2e5fe61151465455ceb52cd3ee5e to your computer and use it in GitHub Desktop.
Save ajtrichards/3fbe2e5fe61151465455ceb52cd3ee5e to your computer and use it in GitHub Desktop.
A command to delete merged branches in GIT
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment