Skip to content

Commit 0c78e87

Browse files
git: improve branch, tag, diff and rebases, plus some cleanup
Inspired by: https://blog.gitbutler.com/how-git-core-devs-configure-git/
1 parent 16e9cc4 commit 0c78e87

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

git/config

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,33 @@
1111
[init]
1212
defaultBranch = main
1313

14+
[branch]
15+
sort = -committerdate
16+
17+
[tag]
18+
sort = -version:refname
19+
20+
[diff]
21+
algorithm = histogram
22+
colorMoved = plain
23+
mnemonicPrefix = true
24+
25+
[commit]
26+
verbose = true
27+
1428
[push]
1529
default = simple
1630

1731
[pull]
1832
rebase = false
1933

20-
[color]
21-
ui = true
34+
# Reuse recorded resolutions.
35+
[rerere]
36+
enabled = true
37+
autoupdate = true
38+
39+
[help]
40+
autocorrect = prompt
2241

2342
[alias]
2443
klog = log --abbrev=12 --graph --decorate --pretty='%C(auto)%d %C(reset)%C(auto)%h %C(reset)(\"%s\")%C(reset)'

0 commit comments

Comments
 (0)