my git configuration
configure, from the highest precedence to lowest
GIT_DIR/.git/config --local
~/.gitconfig --global
~/.config/git/config --global
/etc/gitconfig --system
[user]
name = Xiang Zhong
email = zhongxiang117@gmail.com
[core]
# taken in care, windows marks all file as executable
# set to false to make git ignore `exe' bit changes
#filemode = false
editor = vim
# avoid windows eol `carriage return line feed' error
autocrlf = input
safecrlf = true
[remote "origin"]
url = git+ssh://git@github.com/YOUR_REPOSITORY
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
# color candidates
## normal, black, red, green, yellow,
## magenta, cyan, white, blue
[color "status"]
added = green
changed = yellow
untracked = cyan
[color "branch"]
current = cyan
remote = green
#local = normal
show all configures and their cope
git config --list --show-origin --show-scope
More talks on git-end-of-line
More talks on git-color