Skip to content

Instantly share code, notes, and snippets.

@louy
Last active December 29, 2016 11:45
Show Gist options
  • Save louy/06e3235c3621772083dcc360602ce561 to your computer and use it in GitHub Desktop.
Save louy/06e3235c3621772083dcc360602ce561 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
git branch | grep -v "master" | xargs git branch -d
git fetch origin --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment