Created
March 15, 2021 12:54
-
-
Save l1x/e6e704c46bf3dd54dc570e8829fa09fc to your computer and use it in GitHub Desktop.
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 config --global alias.sweep | |
git config --global --replace-all alias.sweep '!git branch --merged $([[ $1 != "-f" ]] \ | |
&& git rev-parse master) | egrep -v "(^\*|^\s*(main|master|develop)$)" \ | |
| xargs git branch -d' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment