Skip to content

Instantly share code, notes, and snippets.

@johncarl81
Last active March 21, 2017 16:04
Show Gist options
  • Save johncarl81/0d33b2f9693c577a70d651c3bed57e02 to your computer and use it in GitHub Desktop.
Save johncarl81/0d33b2f9693c577a70d651c3bed57e02 to your computer and use it in GitHub Desktop.
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d &&
git remote prune origin &&
git gc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment