我的git配置文件 ~/.gitconfig
[user]
name = ***
email = ***@***.***
[core]
editor = vim
[color]
status = auto
branch = auto
diff = auto
ui = true
pager = true
[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
配置文件中的各个配置行都是以tab开始, editor = vim指明git相关命令默认使用vim作为编辑器。
其他的都是一些设置颜色的, 具体的[color “branch”]就是设置git-branch命令的显示颜色, 其他的类推...
阅读(1429) | 评论(0) | 转发(0) |