Skip to content

Instantly share code, notes, and snippets.

@tlikai
Last active December 16, 2019 05:12
Show Gist options
  • Save tlikai/20be5a532f2e0246ee6503a970340452 to your computer and use it in GitHub Desktop.
Save tlikai/20be5a532f2e0246ee6503a970340452 to your computer and use it in GitHub Desktop.
Delete merged branch
git branch --merged=develop | grep -v 'master' | grep -v 'develop' | tr -d '^ ' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment