Skip to content

Instantly share code, notes, and snippets.

@lbalceda
Last active September 22, 2015 18:36
Show Gist options
  • Save lbalceda/e0e8e13da4011e696adf to your computer and use it in GitHub Desktop.
Save lbalceda/e0e8e13da4011e696adf to your computer and use it in GitHub Desktop.
git delete merged branches
git branch --merged | grep -v '\*\|master\|develop\|alpha' | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment