Skip to content

Instantly share code, notes, and snippets.

@kbaribeau
Created January 25, 2012 16:43
Show Gist options
  • Save kbaribeau/1677180 to your computer and use it in GitHub Desktop.
Save kbaribeau/1677180 to your computer and use it in GitHub Desktop.
Git branch cleanup
git branch -r | grep kbaribeau | grep -v ${stuff_to_keep} | cut -d '/' -f 2-9 | sed -e 's/^/:/' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment