Skip to content

Instantly share code, notes, and snippets.

@sweeetland
Created August 9, 2021 00:40
Show Gist options
  • Select an option

  • Save sweeetland/974947779c159c5ee99b2f8b68d65ba3 to your computer and use it in GitHub Desktop.

Select an option

Save sweeetland/974947779c159c5ee99b2f8b68d65ba3 to your computer and use it in GitHub Desktop.
Delete all local branches (merged and unmerged)
git branch | egrep -v "(^\*|development|staging|production)" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment