Last active
September 23, 2020 13:01
-
-
Save NilFoss/b4bb02fbde1575b44fa4 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的显示图形 | |
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 log日志 | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
#带签名的git log日志 格式化时间 | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --date=rfc --abbrev-commit" | |
#使用gpg2签名 | |
gpg.program=gpg2 | |
commit.gpgsign=true | |
user.signingkey=1D45E99E62473ADF | |
# git 的diff 替换成 diff-so-fancy | |
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment