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
+5
View File
@@ -122,3 +122,8 @@
smudge = git-lfs smudge -- %f
[http]
sslVerify = false
[includeIf "ondarwin"]
path = ~/.dotfile/git/.gitconfig.darwin
[includeIf "onlinux"]
path = ~/.dotfile/git/.gitconfig.linux