vi ~/.gitconfig
在该文件里添加:
[color]
ui = true[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an, %cr)%Creset'
co = checkout
ci = commit
di = diff
st = status
br = branch
vi ~/.gitconfig
在该文件里添加:
[color]
ui = true