Improvements to my .gitconfig
dblume

dblume commited on 2025-02-25 17:43:05
Showing 1 changed files, with 9 additions and 1 deletions.


These came from https://blog.gitbutler.com/how-git-core-devs-configure-git/
... ...
@@ -3,9 +3,9 @@
3 3
 	email = david.blume@gmail.com
4 4
 [diff]
5 5
 	tool = vimdiff
6
-	noprefix = true
7 6
 	submodule = log
8 7
 	algorithm = histogram
8
+	mnemonicPrefix = true
9 9
 [difftool]
10 10
 	prompt = false
11 11
 [difftool "vimdiff"]
... ...
@@ -19,6 +19,7 @@
19 19
 [push]
20 20
 	default = simple
21 21
 	autoSetupRemote = true
22
+	followTags = true
22 23
 [core]
23 24
 	editor = nvim
24 25
 	excludesfile = ~/.gitignore
... ...
@@ -34,6 +35,7 @@
34 35
 	defaultBranch = main
35 36
 [fetch]
36 37
 	prune = true
38
+	pruneTags = true
37 39
 [merge]
38 40
 	tool = vimdiff
39 41
 	conflictstyle = diff3
... ...
@@ -45,5 +47,11 @@
45 47
 	lineNumber = true
46 48
 [commit]
47 49
 	verbose = true
50
+[help]
51
+	autocorrect = prompt
52
+[rebase]
53
+	autoSquash = true
54
+	autoStash = true
55
+	updateRefs = true
48 56
 [include]
49 57
 	path = ~/.gitconfig.local
50 58