我的常用gitconfig配置如下
[core]
pager = less -JFRSX
[alias]
br = branch -a
clog = log --date=short --pretty=format:\"%Cred%ad %Cblue%h %Cgreen%an %Creset%s%C(yellow)%d\"
slog = log --date=short --pretty=format:\"%C(124)%ad %C(24)%h %C(34)%an %C(252)%s%C(178)%d\"
llog = log --date=short --format=\"%C(94)--------------------------------------------------------------------------------%n%C(24)%h %C(124)%ad %C(34)%an %C(22)<%ae>%C(130)%d%n%C(178) %s%n%n%B(1)\"
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
showbranch = auto
status = auto
ui = auto
[color "branch"]
current = green
local = yellow
remote = red
[color "diff"]
meta = yellow
[color "grep"]
match = green
[color "status"]
changed = yellow
[diff]
renames = true
[diff "odf"]
command = odt2txt
[diff "jpg"]
command = exiftool
[i18n]
logoutputencoding = ISO-8859-1
[merge]
tool = vimdiff
[rerere]
enabled = true
[user]
email = xxxx@gmail.com
name = xxxx