Skip to content

Instantly share code, notes, and snippets.

@jbodah
Created June 1, 2015 14:26
Show Gist options
  • Save jbodah/0e0a3a61d4efa8222a32 to your computer and use it in GitHub Desktop.
Save jbodah/0e0a3a61d4efa8222a32 to your computer and use it in GitHub Desktop.
clean branches2
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment