首页 > 技术文章 > 终端 git log 修改样式

-yun 2016-09-05 11:22 原文

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"

 

一句话。OK

 

然后用命令 git lg

 

推荐阅读