编辑 vim ~/.gitconfig
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 效果
git lg
京公网安备 11010502049817号