feat(git): enable some sensible defaults

This commit is contained in:
2026-03-09 22:20:58 +01:00
parent a9dc1bef9a
commit 38d84331d1

View File

@@ -5,6 +5,7 @@
[commit] [commit]
gpgsign = true gpgsign = true
verbose = true
; NOTE:(@janezicmatej) github/gitlab don't support these ; NOTE:(@janezicmatej) github/gitlab don't support these
; [push] ; [push]
@@ -17,14 +18,16 @@
[init] [init]
defaultBranch = main defaultBranch = main
[diff] [rebase]
tool = nvimdiff updateRefs = true
[difftool "nvimdiff"] [rerere]
cmd = nvim -d "$LOCAL" "$REMOTE" enabled = true
autoUpdate = true
[merge] [merge]
tool = nvimdiff tool = nvimdiff
conflictStyle = zdiff3
[mergetool] [mergetool]
keepBackup = false keepBackup = false
@@ -33,8 +36,26 @@
[mergetool "nvimdiff"] [mergetool "nvimdiff"]
layout = "LOCAL,BASE,REMOTE / MERGED" layout = "LOCAL,BASE,REMOTE / MERGED"
[diff]
tool = nvimdiff
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
[difftool "nvimdiff"]
cmd = nvim -d "$LOCAL" "$REMOTE"
[alias] [alias]
blame = "!f() { [ -f .git-blame-ignore-revs ] && git blame --ignore-revs-file .git-blame-ignore-revs \"$@\" || git blame \"$@\"; }; f" blame-ignore = "config blame.ignoreRevsFile .git-blame-ignore-revs"
[branch]
sort = -committerdate
[tag]
sort = version:refname
[help]
autoCorrect = prompt
[maintenance] [maintenance]
auto = true auto = true