Linux中设置Git显示颜色

Posted 从此蜕变

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux中设置Git显示颜色相关的知识,希望对你有一定的参考价值。

在linux中git安装后颜色是不自动设置的。

下面的命令设置git的颜色:

git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto

以上是关于Linux中设置Git显示颜色的主要内容,如果未能解决你的问题,请参考以下文章