作者:夜翊灬瞳_398 | 来源:互联网 | 2023-02-05 23:10
命令gitlog--no-merges--color--graph--dateformat:%Y-%m-%d%H:%M:%S--prettyformat:%Cred%h%Crese
命令
git log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
效果
提升
可以作为默认命令,配置到.gitconfig中
[alias]
ls = log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
用的时候输入指令git ls
即可显示上图效果