我的git配置 -- .gitconfig

1454阅读 0评论2009-05-11 iceway_cu
分类:LINUX

我的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命令的显示颜色, 其他的类推...
上一篇:git学习帖收集
下一篇:浅谈C中的malloc和free