Skip to content

Instantly share code, notes, and snippets.

@lonnelars
Last active June 9, 2017 06:48
Show Gist options
  • Save lonnelars/e50d27e34ac5cc58db7fad012027bc87 to your computer and use it in GitHub Desktop.
Save lonnelars/e50d27e34ac5cc58db7fad012027bc87 to your computer and use it in GitHub Desktop.
Delete merged branches
git branch --merged | egrep -v "(^\*|master|development|merged-branch-youd-like-to-keep)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment