aboutsummaryrefslogtreecommitdiff
path: root/git/.gitconfig
blob: a368099eb1b5a906f82955e2f7261ef7bc287199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Sample gitconfig
#

[include]
	path = ~/.gitconfig.local

[hub]
	protocol = https
[alias]
	count   = !git shortlog -sn
[color]
	diff = auto
	status = auto
	branch = auto
	ui = true
[core]
	attributesfile = ~/.gitattributes
	excludesfile = ~/.gitignore
	editor = nvim
	whitespace = blank-at-eol,blank-at-eof,space-before-tab,tab-indent
	pager = less -x1,5
[apply]
	#whitespace = error
[mergetool]
	keepBackup = false
[difftool]
	prompt = false
[help]
	autocorrect = 1
[commit]
	gpgsign = 1
[push]
	default = simple
	recurseSubmodules = check
[rerere]
	enabled = true
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true
[pull]
	ff = only
[init]
	defaultBranch = main

[diff "clean"]
	xfuncname = "^((\\S.*)?::.*)$"
[diff "wat"]
	xfuncname = "^\\s*(\\((func|module).*)$"