Skip to content

Instantly share code, notes, and snippets.

@sthomp
Last active September 24, 2017 14:40
Show Gist options
  • Save sthomp/1571ab4a83177887f179 to your computer and use it in GitHub Desktop.
Save sthomp/1571ab4a83177887f179 to your computer and use it in GitHub Desktop.
Delete old git branches without deleting develop or master
git branch --merged | grep -v 'master\|develop' | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment