Skip to content

gitconfig 文件

rikki edited this page Sep 1, 2013 · 1 revision
[color]
    ui = true
[color "branch"]
    current = yellow reverse
    local = yellow
    remote = green
[color "diff"]
    meta = bold
    frag = magenta bold
    old = red bold
    new = blue bold
    whitespace = red reverse
[color "status"]
    added = blue
    changed = red
    untracked = yellow

[core]
    whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
	excludesfile = ~/.gitignore
    quotepath = false
	editor = vim 

[alias]
    st = status
    br = branch
    co = checkout

[user]
	name = Your Name 
	email = [email protected]
[merge]
	tool = vimdiff 
[commit]
	template = ~/.gitmessage

Clone this wiki locally