Skip to content

Instantly share code, notes, and snippets.

@jwinder
Created August 18, 2014 21:27
Show Gist options
  • Save jwinder/ec832847e824e2592ecb to your computer and use it in GitHub Desktop.
Save jwinder/ec832847e824e2592ecb to your computer and use it in GitHub Desktop.
#!/bin/sh
git sweep cleanup
git remote prune origin
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment