Created
December 13, 2021 04:26
-
-
Save liflovs/ffe2c25d13f48a24cb728dbb5f0bc545 to your computer and use it in GitHub Desktop.
Cleanup merged local branches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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