Skip to content

Instantly share code, notes, and snippets.

@lkopocinski
Last active March 18, 2018 13:25
Show Gist options
  • Save lkopocinski/9167319a22cca0fc625fb365f41b3206 to your computer and use it in GitHub Desktop.
Save lkopocinski/9167319a22cca0fc625fb365f41b3206 to your computer and use it in GitHub Desktop.
Git command for deleting merged branches
git branch --merged | grep -E -v "master|develop" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment