From cb8eb6dbbe278bed4802c373dc02ffc9e883e973 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Thu, 27 Feb 2025 22:35:46 +0100 Subject: [PATCH] git: update config --- git/gitconfig | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/git/gitconfig b/git/gitconfig index 97c5316..642f577 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -9,7 +9,7 @@ [merge] defaultToUpstream = true tool = vimdiff - conflictstyle = diff3 + conflictstyle = zdiff3 [core] editor = vim eol = native @@ -27,6 +27,7 @@ unstage = reset HEAD -- [rerere] enabled = true + autoupdate = true [branch] autoSetupMerge = always # Fetch also the merge requests data for common remotes @@ -39,7 +40,10 @@ fetch = +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/* [diff] tool = vimdiff - colormoved = default + colorMoved = plain + algorithm = histogram + mnemonicPrefix = true + renames = true [difftool] prompt = false [color.blame] @@ -72,6 +76,7 @@ light = false [pull] ff = only + rebase = true [url "ssh://git@github.com/"] pushInsteadOf = https://github.com/ [url "ssh://git@gitlab.com/"] @@ -80,3 +85,13 @@ pushInsteadOf = https://bitbucket.org/ [push] autoSetupRemote = true + default = simple + followTags = true +[tag] + sort = version:refname +[fetch] + prune = true + pruneTags = true + all = true +[help] + autocorrect = prompt