Skip to content

Instantly share code, notes, and snippets.

@bahelms
Last active April 30, 2019 13:55
Show Gist options
  • Save bahelms/0969f4af2a8b7ea7e4a696c46b7a8e88 to your computer and use it in GitHub Desktop.
Save bahelms/0969f4af2a8b7ea7e4a696c46b7a8e88 to your computer and use it in GitHub Desktop.
Clean yo git!
git branch --merged | grep -Ev "(^\*|master|dev)" | xargs git branch -d
git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment