git色彩显示
在 ~/.gitconfig 中添加以下段落
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true也可以控制特定颜色
[color "status"]
added = green
changed = red bold
untracked = magenta bold
[color "branch"]
remote = yellow或者使用:
git config --global color.ui auto或者
git config --global color.ui auto
git config --global color.branch auto
git config --global color.status auto参考
Last updated
Was this helpful?