Skip to content

[git] Настройки

rsajob edited this page Sep 12, 2012 · 4 revisions

Редактор для git

чтобы редактор фара заработал надо путь к фару добавить в PATH, старый фар грохнуть (или перенести). Ещё добавить переменную окружения

GIT_EDITOR=far -e

редактор vim

git config --global core.editor "'C:/Program Files/Git/share/vim/vim73/vim.exe' --nofork '%*'"

Far

git config --global core.editor "'C:/Program Files/Far Manager/Far.exe -e' --nofork '%*'"

.gitconfig

[core]
	symlinks = false
	autocrlf = true
	quotepath = false
	pager = cat
	editor = Far.exe -e
[color]
	diff = auto
	status = auto
	branch = auto
	interactive = true
[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
[alias]
	l = log --reverse --pretty=%h%x20%s
	m = checkout master
	b = checkout
	r = reset --hard HEAD
	s = status
	c = commit -am
	co = checkout
	ci = commit
	st = status
	br = branch
	h = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short --reverse -20
	hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short --graph -20
	plog = log --pretty=format:'%Creset%h %C(yellow)%cn %Creset%cr %Cgreen%s %Cred%d %Cgreen[%an]' -20
	glog = log --pretty=format:'%Creset%h %C(yellow)%cn %Creset%cr %Cgreen%s %Cred%d %Cgreen[%an]' -20 --graph
	type = cat-file -t
	dump = cat-file -p
Clone this wiki locally