git别名设置

发布时间 2023-04-27 01:11:54作者: 来个煎饼

原文:https://www.cnblogs.com/dyh-air/p/7709684.html

 
把lg配置成:

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

效果:
image