Beautiful Git Log
转载自:https://coderwall.com/p/euwpig/a-better-git-log
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
效果图:

永久性使用:
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命令查看git log
本文介绍了一种美化Git日志的方法,通过使用特定的命令格式,可以让Git的日志展示得更加直观且易于阅读。同时,文章提供了如何将此设置为全局默认配置的方式。
167

被折叠的 条评论
为什么被折叠?



