git给log设置别名来快速查看友好的log信息时间:2023-03-10 07:24:10 把lg配置成了: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 lg即可看到效果: