git log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s%Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
可以把这个命令在.gitconfig这个文件下alias,还可以把一些常用的命令一起alias,例如git status等
[alias]
lg= log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s%Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
br = branch