Skip to content

Instantly share code, notes, and snippets.

@jeremydw
Created October 28, 2015 23:34
Show Gist options
  • Save jeremydw/b0d63542bb8417376f04 to your computer and use it in GitHub Desktop.
Save jeremydw/b0d63542bb8417376f04 to your computer and use it in GitHub Desktop.
Clean up deleted 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