Last updated 5 years ago
Was this helpful?
在 ~/.gitconfig 中添加以下段落
~/.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