Skip to content

Instantly share code, notes, and snippets.

@Surreal9
Created August 23, 2017 21:18
Show Gist options
  • Save Surreal9/41e72831e867a37116cb3ad42e320225 to your computer and use it in GitHub Desktop.
Save Surreal9/41e72831e867a37116cb3ad42e320225 to your computer and use it in GitHub Desktop.
Delete merged git branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment