Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinah95/c362c59015436ce224ed35db08c5faab to your computer and use it in GitHub Desktop.
Save kevinah95/c362c59015436ce224ed35db08c5faab to your computer and use it in GitHub Desktop.
git config --global alias.purge '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