Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1355180
  • 博文数量: 1334
  • 博客积分: 645
  • 博客等级: 上士
  • 技术积分: 5762
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-25 16:56
文章分类

全部博文(1334)

文章存档

2014年(108)

2013年(1059)

2012年(169)

分类: 其他UNIX

2013-06-10 12:40:07

让git彩色显示


新装的系统,不知为啥,”git diff, git status”默认单色显示,看起来很不直观。于是查了下资料,配置一下即可。
先来张效果图:

配置命令:

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

也可以直接编辑~/.gitconfig,其实上面的命令就是往这个文件中添加了这些配置项。

[color]
    diff = auto
    branch = auto
    status = auto
    interactive = auto

查看自己都有哪些配置

git config --list
阅读(992) | 评论(1) | 转发(0) |
0

上一篇:linux安装git(ubuntu, redhat)

下一篇:配置 svn

给主人留下些什么吧!~~