Skip to content

Instantly share code, notes, and snippets.

@aslamhadi
Created December 21, 2016 05:47
Show Gist options
  • Save aslamhadi/afa454355e2c037d496884d5e2e9d270 to your computer and use it in GitHub Desktop.
Save aslamhadi/afa454355e2c037d496884d5e2e9d270 to your computer and use it in GitHub Desktop.
Remove merged branches in local
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