答案1
您可以从 进行该操作.gitconfig
。
您可以输入如下内容:
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
并从normal
、black
、red
、green
、yellow
、和blue
中选择您想要的颜色。magenta
cyan
white
您甚至可以(可选)添加第二种颜色作为背景;和/或添加bold
、、和。dim
ul
blink
reverse