git给log设置别名来快速查看友好的log信息

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即可看到效果:

 

posted @ 2017-10-22 14:30  董永辉Bruno  阅读(973)  评论(0编辑  收藏  举报