git 自定义log

我的记录防止忘记git

 

log别名:spa

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

 


设定自定义日期:code

git config --global log.date=format:%Y-%m-%d %H:%M:%S
相关文章
相关标签/搜索