Last active
April 3, 2024 23:56
-
-
Save kainino0x/3eab41aa952ec46888ee7099d4483d84 to your computer and use it in GitHub Desktop.
my personal `git lg` and friends
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 --pretty=tformat:'%Cred%h%Creset %Cgreen%cd%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short-local" | |
git config --global alias.gr "log --graph --pretty=tformat:'%Cred%h%Creset %Cgreen%cd%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short-local" | |
git config --global alias.l '!git --no-pager lg main~.. && echo && git status --show-stash' | |
git config --global alias.br "branch --sort=-committerdate --format='%(HEAD) %(if)%(HEAD)%(then)%(color:green)%(end)%(committerdate:short) %(align:32)%(refname:short)%(end) %(contents:subject)'" | |
git config --bool gerrit.override-squash-uploads false # probably won't be overwritten but haven't verified | |
# old unused | |
#git config --global alias.rl "reflog --format='%C(auto)%h %<|(17)%gd %C(blue)%cr%C(reset) %s'" # drops branch info | |
#git config --global alias.st '!git --no-pager log -1 --oneline && git status -sb' # short status is hard to use | |
#git config --global alias.l '!git status -s; git --no-pager lg -n8;echo' # redundant | |
#git config --bool gerrit.squash-uploads false # gclient sync will overwrite this with `GERRIT_SQUASH_UPLOADS` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment