Skip to content

Instantly share code, notes, and snippets.

@sudodoki
Created August 10, 2015 12:49
Show Gist options
  • Save sudodoki/b476d735d5a674a171b9 to your computer and use it in GitHub Desktop.
Save sudodoki/b476d735d5a674a171b9 to your computer and use it in GitHub Desktop.
Delete all local branches except for master/dev
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