Skip to content

Instantly share code, notes, and snippets.

@mherchel
Created February 9, 2018 13:53
Show Gist options
  • Save mherchel/576c2df89d061e9ae2a251a1201faeb6 to your computer and use it in GitHub Desktop.
Save mherchel/576c2df89d061e9ae2a251a1201faeb6 to your computer and use it in GitHub Desktop.
git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment