From 3eea2185259bc9a0499a97b345239b0b6ff68849 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 17 Mar 2025 03:01:24 +0900 Subject: git: make configurations better https://blog.gitbutler.com/how-git-core-devs-configure-git/ --- .config/git/config | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.config/git/config b/.config/git/config index 3c154d6..383089c 100644 --- a/.config/git/config +++ b/.config/git/config @@ -6,15 +6,33 @@ [advice] detachedhead = false +[help] + autocorrect = prompt + [color] ui = true +[column] + ui = auto + +[tag] + sort = version:refname + [commit] status = false +[fetch] + prune = true + prunetags = true + all = true + +[pull] + rebase = true + [merge] tool = vimdiff ff = false + conflictstyle = zdiff3 [mergetool "vimdiff"] cmd = "__fn() { \ @@ -29,8 +47,17 @@ abbreviatecommands = true autosquash = true autostash = true + updaterefs = true + +[rerere] + enabled = true + autoupdate = true [diff] + algorithm = histogram + colormoved = plain + mnemonicprefix = true + renames = true tool = vimdiff [difftool "vimdiff"] -- cgit v1.2.3-70-g09d2