Skip to content

Commit 7e2e344

Browse files
committed
1 parent c0d66e7 commit 7e2e344

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

dotfiles/.gitconfig

+23-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# Prevent macOS's revisiond daemon to mess up with our files.
88
# See: https://www.git-tower.com/blog/make-git-rebase-safe-on-osx/
99
trustctime = false
10+
[column]
11+
ui = auto
1012
[pack]
1113
useSparse = true
1214
[user]
@@ -28,27 +30,34 @@
2830
[interactive]
2931
diffFilter = delta --color-only
3032
[help]
31-
# Autocorrect for simple typos
32-
autocorrect = 1
33+
autocorrect = prompt
3334
[apply]
3435
whitespace = fix
3536
[diff]
36-
renames = copies
37-
# Source: http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
38-
algorithm = patience
37+
colorMoved = plain
38+
renames = true
39+
# histogram is an incremental improvement on patience
40+
algorithm = histogram
3941
# Source: https://mobile.twitter.com/brandur/status/1182066723337293828
4042
noprefix = true
4143
[commit]
44+
verbose = true
4245
gpgsign = true
4346
[log]
4447
decorate = full
48+
[fetch]
49+
prune = true
50+
pruneTags = true
51+
all = true
4552
[pull]
4653
# Source: https://stackoverflow.com/a/18756102/487610
4754
rebase = merges
4855
[push]
4956
# Prevent accidental pushes to branches which you’re not ready to push yet.
5057
# Source: http://mislav.uniqpath.com/2010/07/git-tips/
5158
default = tracking
59+
autoSetupRemote = true
60+
followTags = true
5261
[stash]
5362
# Shows the diff of a stash.
5463
showPatch = true
@@ -57,20 +66,27 @@
5766
fetchJobs = 2
5867
[merge]
5968
log = true
60-
conflictstyle = diff3
69+
conflictstyle = zdiff3
6170
[mergetool]
6271
# Do not keep backup files around after a successful merge.
6372
keepBackup = false
6473
[branch]
6574
autosetuprebase = remote
6675
# Show most recently changed branches first.
6776
sort = -committerdate
77+
[tag]
78+
sort = version:refname
6879
[init]
6980
defaultBranch = main
7081
[rebase]
7182
# Automatically stash and unstash the working directory before and after
7283
# rebases.
73-
autostash = true
84+
autoStash = true
85+
autoSquash = true
86+
updateRefs = true
87+
[rerere]
88+
enabled = true
89+
autoupdate = true
7490
[alias]
7591
# Meta: Print supported aliases.
7692
aliases = config --get-regexp alias

0 commit comments

Comments
 (0)