命令

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

效果

git可视化提交记录

提升

可以作为默认命令,配置到.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即可显示上图效果

相关文章:

  • 2022-01-01
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-08-31
  • 2022-12-23
  • 2022-02-27
  • 2021-04-19
  • 2021-11-16
相关资源
相似解决方案