1 . 输入 git config --global alias.lg "log --graph --pretty=format:'%Cred%h - %Cgreen[%an]%Creset -%C(yellow)%d%Creset %s %C(yellow)<%cr>%Creset' --abbrev-commit --date=relative"
2. git lg 显示
------------------------------------------------------------
追加 git status 等命令颜色配置(新版git,用always参数,老版本可能是auto参数)
git config --global color.status always
git config --global color.diff always
git config --global color.branch always
git config --global color.interactive always