Skip to content

Instantly share code, notes, and snippets.

@Neoglyph
Created February 3, 2021 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neoglyph/624d03a24d9c627d8fa200a41b114c84 to your computer and use it in GitHub Desktop.
Save Neoglyph/624d03a24d9c627d8fa200a41b114c84 to your computer and use it in GitHub Desktop.
Delete local branches that are already merged
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment