From 8eeaea802a7f8e468f4127dfc8c30ce6c8c7eca6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 24 Mar 2025 15:50:22 +0200 Subject: [PATCH] chore(config): better git configs Signed-off-by: Ismo Vuorinen --- config/git/config | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/config/git/config b/config/git/config index c1bf05c..713e963 100644 --- a/config/git/config +++ b/config/git/config @@ -13,3 +13,52 @@ [advice] detachedHead = false +[column] + ui = auto +[branch] + sort = -committerdate +[tag] + sort = version:refname +[init] + defaultBranch = main +[diff] + algorithm = histogram + colorMoved = plain + mnemonicPrefix = true + renames = true +[push] + default = simple + autoSetupRemote = true + followTags = true +[fetch] + prune = true + pruneTags = true + all = true +[help] + autocorrect = prompt +[commit] + verbose = true +[rerere] + enabled = true + autoupdate = true +[rebase] + autoSquash = true + autoStash = true + updateRefs = true +[merge] + conflictstyle = zdiff3 +[pull] + rebase = true +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newHighlight = green bold 22 +[color "diff"] + meta = 11 + frag = magenta bold + func = 146 bold + commit = yellow bold + old = red bold + new = green bold + whitespace = red reverse