My gitconfig

I’ll put it here without explanations, as it is self-explanatory.
Enjoy ;)

	name = Your Username
	email = Your Mail
	token = Your Github token if relevant

	quotepath = false
	excludesfile = /Your/Home/Directory/.gitignore
	editor = mvim -f #your favorite editor

	default = matching

#I use Kaleidoscope for diff. A great tool if you happen to work on a Mac by the way
[difftool "Kaleidoscope"]
	cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"

	prompt = false

	tool = Kaleidoscope

	ui = auto

[color "branch"]
	current = yellow reverse
	local = yellow
	remote = green

[color "diff"]
	meta = yellow bold
	frag = magenta bold
	old = red bold
	new = green bold

[color "status"]
	added = yellow
	changed = green
	untracked = cyan

	st = status # 'git st' is now the same as 'git status'. same for the others
	ci = commit
	br = branch
	co = checkout
	df = diff
	dc = diff --cached
	lg = log -p
	lol = log --graph --decorate --pretty=oneline --abbrev-commit
	lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
	ls = ls-files
	ign = ls-files -o -i --exclude-standard #show files ignored by git

Leave a Reply