From 94a179c162b22879d430784a325691b60b79d2a3 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Wed, 19 Mar 2025 11:45:00 +0100 Subject: [PATCH] Better git settings Source: https://blog.gitbutler.com/how-git-core-devs-configure-git/ --- git/.config/git/config | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/git/.config/git/config b/git/.config/git/config index aa2a91a..dfd3819 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -20,9 +20,11 @@ [push] default = simple autoSetupRemote = true + followTags = true [merge] tool = vimdiff + conflictstyle = zdiff3 [help] autocorrect = 10 @@ -46,11 +48,13 @@ [rebase] autosquash = true - updateRefs = true + updaterefs = true autoStash = true [fetch] prune = true + pruneTags = true + all = true [sendemail] smtpserver = charon.bertptrs.nl @@ -72,3 +76,15 @@ # Mark any lines that were added in a skipped commit and can not be # attributed with a `*` markUnblamableLines = true +[branch] + sort = -committerdate +[diff] + algorithm = histogram + colorMoved = plain + mnemonicprefix = true + renames = true +[rerere] + enabled = true + autoupdate = true +[tag] + sort = version:refname