Created
November 2, 2021 05:41
-
-
Save fonylew/3f3df674b18aee2feb35486abae8d97c to your computer and use it in GitHub Desktop.
This file contains 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.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git config --global alias.sweep '!git branch --merged $([[ $1 != "-f" ]] \ | |
&& git rev-parse master) | egrep -v "(^\*|^\s*(master|develop)$)" \ | |
| xargs git branch -d' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment