From 118d166419760939d0784bed66efea7c42a16157 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:36 +0100 Subject: refactor: improve safety of autocorrect and remove undo alias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change help.autocorrect from 1 (0.1s auto-execute) to 'prompt' (asks before executing the guessed command). Prevents accidental execution of wrong commands. - Remove 'undo = reset --hard' alias — destructive with no confirmation, could silently discard uncommitted work. --- home/.config/git/config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home/.config/git/config b/home/.config/git/config index 226e8a0..bba5ed3 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -59,7 +59,7 @@ showStash = true submoduleSummary = true [help] - autocorrect = 1 + autocorrect = prompt [log] abbrevCommit = true date = short @@ -121,12 +121,13 @@ sw = switch swc = switch -c swd = switch -d - undo = reset --hard unstage = reset HEAD -- update=!git fetch && git merge --ff-only [includeIf "gitdir:/home/*/work/"] path = config-work [includeIf "gitdir:~/doxfiles/.git"] path = config-personal -[includeIf "gitdir:~/personal/"] +[includeIf "gitdir:~/dev/copilot/.git"] + path = config-personal +[includeIf "gitdir:~/dev/personal/"] path = config-personal -- cgit v1.2.3-70-g09d2