Skip to content

Instantly share code, notes, and snippets.

@liflovs
Created December 13, 2021 04:26
Show Gist options
  • Save liflovs/ffe2c25d13f48a24cb728dbb5f0bc545 to your computer and use it in GitHub Desktop.
Save liflovs/ffe2c25d13f48a24cb728dbb5f0bc545 to your computer and use it in GitHub Desktop.
Cleanup merged local branches
git branch --merged | grep -v "\*" | grep -Ev "(\*|master|develop|staging)" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment