git添加颜色

来源:互联网 发布:空间营销软件 编辑:程序博客网 时间:2024/06/05 04:06

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

 

配置名称

git config --global user.name "Your Name"
git config --global user.email you@example.com

也可以在

~/.gitconfig 中配置,如下:

[color]
 status = auto
 diff = auto
 branch = auto
 interactive = auto
[user]
 name = test
 email = test@sina.com