Skip to content

Instantly share code, notes, and snippets.

@Bogdaan
Created October 8, 2020 07:13
Show Gist options
  • Save Bogdaan/8edc819cafd809061961f29c4b4656f3 to your computer and use it in GitHub Desktop.
Save Bogdaan/8edc819cafd809061961f29c4b4656f3 to your computer and use it in GitHub Desktop.
Remove merged git branches
git branch --merged| egrep -v "(^\*|master|dev|stage)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment