gitconfig

gitconfig

放在~/.gitconfig

我自己常用的:

[color]
	ui = true
[alias]
	br = branch
	ci = commit -v
	cia = commit -v --amend
	cim = commit -m
	cl = clone
	co = checkout
	cob = checkout -b
	df = diff
	st = status
[core]
	editor = vim
	excludesfile = ~/.gitignore_global
	pager = ~/.git/contrib/diff-highlight | less
	preloadindex = true
	autocrlf = false
	ignorecase = false
	fscache = true
[mergetool]
	keepBackup = false
[gui]
	encoding = utf-8
[i18n]
	commitencoding = utf-8
	logoutputencoding = utf-8
[help]
	autocorrect = 10
[credential]
	helper = cache --timeout=600
[branch "master"]
	rebase = true
[branch "dev"]
	rebase = true
[branch]
	autosetuprebase = always
[url "[email protected]:"]
	#insteadOf = git://github.com/
	#insteadOf = http://github.com/
	#insteadOf = https://github.com/
[grep]
	lineNumber = true
[diff]
	compactionHeuristic = true

 

 


未分類

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *