海神


Git在命令行下面显示颜色

2013-04-16
#git

原文:http://nathanhoad.net/how-to-colours-in-git

打开~/.gitconfig文件,加入:

[color]
  ui = auto
[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green
[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold
[color "status"]
  added = yellow
  changed = green
  untracked = cyan

blog comments powered by Disqus