summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2025-03-12 16:31:19 -0400
committerMatt Turner <mattst88@gmail.com>2025-03-12 16:31:19 -0400
commit8769c7fae67e3b7b66ea2c063497533b908514ff (patch)
treeaf4adc513f1b890439ede8f3f6b12d86e372aa0b
parent1fa5b0b63af27bb1b99e7d7529071b91d54f915c (diff)
git: Add some more config
From https://blog.gitbutler.com/how-git-core-devs-configure-git/
-rw-r--r--git/.config/git/config11
1 files changed, 11 insertions, 0 deletions
diff --git a/git/.config/git/config b/git/.config/git/config
index 189ff23..9656a24 100644
--- a/git/.config/git/config
+++ b/git/.config/git/config
@@ -8,6 +8,8 @@
ui = auto
[rebase]
autosquash = true
+ autostash = true
+ updaterefs = true
[core]
autocrlf = false
filemode = false
@@ -16,8 +18,13 @@
renames = true
srcprefix = ./
dstprefix = ./
+ algorithm = histogram
+ colormoved = true
[push]
default = simple
+ autosetupremote = true
+[pull]
+ rebase = true
[alias]
fixes = show -s --pretty='format:Fixes: %h (\"%s\")'
co = checkout
@@ -41,3 +48,7 @@
--prompt 'Select commit: '
[commit]
verbose = true
+[branch]
+ sort = -committerdate
+[tag]
+ sort = version:refname