Skip to content

Instantly share code, notes, and snippets.

@djanowski
Created September 15, 2014 20:18
Show Gist options
  • Save djanowski/68662bf66f0edaa3b6d9 to your computer and use it in GitHub Desktop.
Save djanowski/68662bf66f0edaa3b6d9 to your computer and use it in GitHub Desktop.
git checkout master
git gc
git remote | while read remote; do
git remote prune $remote
done
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