From 24c8d3d1cb1d4788b828d8edd3765a513bcdf721 Mon Sep 17 00:00:00 2001 From: reonokiy Date: Tue, 18 Mar 2025 04:34:39 +0800 Subject: [PATCH] update git credential oauth config --- .chezmoitemplates/dot_gitconfig_linux.tmpl | 2 +- .chezmoitemplates/dot_gitconfig_windows.tmpl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.chezmoitemplates/dot_gitconfig_linux.tmpl b/.chezmoitemplates/dot_gitconfig_linux.tmpl index 027f2f4..4085ac9 100644 --- a/.chezmoitemplates/dot_gitconfig_linux.tmpl +++ b/.chezmoitemplates/dot_gitconfig_linux.tmpl @@ -9,7 +9,7 @@ name = {{ .git.default.name }} email = {{ .git.default.email }} [credential] - helper = cache --timeout 21600 + helper = cache --timeout 86400 helper = oauth [hub] protocol = ssh diff --git a/.chezmoitemplates/dot_gitconfig_windows.tmpl b/.chezmoitemplates/dot_gitconfig_windows.tmpl index d7046fc..abf786c 100644 --- a/.chezmoitemplates/dot_gitconfig_windows.tmpl +++ b/.chezmoitemplates/dot_gitconfig_windows.tmpl @@ -8,7 +8,8 @@ signingkey = {{ .git.default.publicKey }} name = {{ .git.default.name }} email = {{ .git.default.email }} -[credential "helperselector"] - selected = wincred +[credential] + helper = cache --timeout 86400 + helper = oauth [core] - sshCommand = "C:/Windows/System32/OpenSSH/ssh.exe" \ No newline at end of file + sshCommand = "C:/Windows/System32/OpenSSH/ssh.exe"