Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save drazisil/284ee5536c9216522aab7d2a30dcfb45 to your computer and use it in GitHub Desktop.
Save drazisil/284ee5536c9216522aab7d2a30dcfb45 to your computer and use it in GitHub Desktop.
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
H/T: https://github.com/wearehive/project-guidelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment