Source: https://blog.gitbutler.com/how-git-core-devs-configure-git
1# clearly makes git better
2
3[column]
4 ui = auto
5[branch]
6 sort = -committerdate
7[tag]
8 sort = version:refname
9[init]
10 defaultBranch = main
11[diff]
12 algorithm = histogram
13 colorMoved = plain
14 mnemonicPrefix = true
15 renames = true
16[push]
17 default = simple
18 autoSetupRemote = true
19 followTags = true
20[fetch]
21 prune = true
22 pruneTags = true
23 all = true
24
25# why the hell not?
26
27[help]
28 autocorrect = prompt
29[commit]
30 verbose = true
31[rerere]
32 enabled = true
33 autoupdate = true
34[core]
35 excludesfile = ~/.gitignore
36[rebase]
37 autoSquash = true
38 autoStash = true
39 updateRefs = true
40
41# a matter of taste (uncomment if you dare)
42
43[core]
44 # fsmonitor = true
45 # untrackedCache = true
46[merge]
47 # (just 'diff3' if git version < 2.3)
48 # conflictstyle = zdiff3
49[pull]
50 # rebase = true
51