Skip to content

Instantly share code, notes, and snippets.

@asyncee
Created March 5, 2020 07:59
Show Gist options
  • Save asyncee/68b9780fdbf21b5fbaa6f84c0e2e1f18 to your computer and use it in GitHub Desktop.
Save asyncee/68b9780fdbf21b5fbaa6f84c0e2e1f18 to your computer and use it in GitHub Desktop.
Delete branches merged into master or develop.
git branch -d $(git branch --merged=master | grep -v master)
git branch -d $(git branch --merged=develop | grep -v develop | grep -v master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment