Skip to content

Instantly share code, notes, and snippets.

@stepansib
Last active January 24, 2019 11:57
Show Gist options
  • Save stepansib/0bf338e0a4e59cec7c5ba10a4618e8c5 to your computer and use it in GitHub Desktop.
Save stepansib/0bf338e0a4e59cec7c5ba10a4618e8c5 to your computer and use it in GitHub Desktop.
#git cleanup
git checkout master
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
git gc --aggressive --prune=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment