feat: split git credential config by OS on Linux and macOS

Use includeIf so Linux prefers libsecret with cache fallback, while macOS keeps osxkeychain.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-25 11:04:15 +08:00
parent e8aae9738b
commit 1f6b042b26
5 changed files with 37 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# 凭据:优先 libsecret(见 git-credential-linux.sh),未安装则 cache + 提示
[credential]
helper = ~/.dotfile/git/git-credential-linux.sh