Skip to content

Commit 8a3862b

Browse files
committed
Update to nicer .gitconfig settings for diff, pull, UI etc.
From https://blog.gitbutler.com/how-git-core-devs-configure-git/ Signed-off-by: Gary Oberbrunner <garyo@darkstarsystems.com>
1 parent cc7a012 commit 8a3862b

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.gitconfig

+22-5
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,21 @@
7373
encoding = utf-8
7474

7575
[push]
76-
default = current
76+
default = simple
7777
# when pushing, push all annotated tags
78-
followTags = true
78+
followTags = true
79+
autoSetupRemote = true
7980
[diff]
8081
renamelimit = 0
81-
renames = copies
82+
renames = true
8283
guitool = kdiff3
8384
submodule = log
84-
colorMoved = default
85+
colorMoved = plain
86+
algorithm = histogram
87+
mnemonicPrefix = true
8588
[merge]
8689
tool = kdiff3
87-
conflictStyle = diff3
90+
conflictstyle = zdiff3
8891
[core]
8992
editor = emacsclient -c -a \"\"
9093
preloadindex = true
@@ -122,9 +125,13 @@
122125
light = true
123126
[rerere]
124127
enabled = true
128+
autoupdate = true
125129
[fetch]
126130
writecommitgraph = false
127131
recurseSubmodules = on-demand
132+
prune = true
133+
pruneTags = true
134+
all = true
128135
[gc]
129136
writeCommitGraph = false
130137
[pull]
@@ -149,3 +156,13 @@
149156
helper = !gh auth git-credential
150157
[commit]
151158
template = /Users/garyo/.gitmessage
159+
[column]
160+
ui = auto
161+
[branch]
162+
sort = -committerdate
163+
[tag]
164+
sort = version:refname
165+
[rebase]
166+
autoSquash = true
167+
autoStash = true
168+
updateRefs = true

0 commit comments

Comments
 (0)