.gitconfig文件为git的配置文件,真对用户而言,路径一般为~/.gitconfig。

ubuntu下的配置

[alias]
	co = checkout
	ci = commit
	st = status
	br = branch
	ll = log --oneline --decorate
	ol = log -p -1
[color]
	status = auto
	branch = auto
	ui = auto
[user]
	name = nieyong
	email = nieyong_1947@126.com
[giggle]
	main-window-maximized = false
	main-window-geometry = 1215x544+126+107
	history-view-vpane-position = 56
	file-view-vpane-position = 467
	main-window-view = FileView

MAC下的配置

[alias]
	co = checkout
	ci = commit
	st = status
	br = branch
	ll = log --oneline --decorate --since='2 days ago'
	ol = log -p -1
[color]
	status = auto
	branch = auto
	ui = auto

windows下的配置

[core]
	symlinks = false
	autocrlf = true
[color]
	diff = auto
	status = auto
	branch = auto
	interactive = true
[alias]
	co = checkout
	ci = commit -a
	st = status
	br = branch
	oneline = log --pretty=oneline -n 5
	onelog = log -p -1
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
[pack]
	packSizeLimit = 2g
[help]
	format = html
[http]
	sslCAinfo = /bin/curl-ca-bundle.crt
[sendemail]
	smtpserver = /bin/msmtp.exe

[diff "astextplain"]
	textconv = astextplain
[rebase]
	autosquash = true
[i18n]
	logoutputencoding = gbk