git log 美化配置
编辑 vim ~/.gitconfig
添加配置
[alias]lg = log --graph --abbrev-commit --decorate --date=format:'%m-%d %H:%M:%S' --format=format:'%C(bold blue)%h%C(reset) - %s %C(bold yellow)% d%C(reset) %n %C(dim white) (%ad) - %an%C(reset)' --all
git lg
效果