feat: update git credential

This commit is contained in:
2026-06-26 11:10:23 +08:00
parent 84c7f37c53
commit 9551225ee9
7 changed files with 66 additions and 33 deletions
+5 -2
View File
@@ -60,8 +60,11 @@ ff reload # 重载 fish 配置
## Git 配置
- 公共配置在 `git/.gitconfig`;**按系统拆分**用 `includeIf ondarwin` / `onlinux`
- Linux 凭据:`git/git-credential-linux.sh`(libsecret 优先,否则 cache)
- 公共配置在 `git/.gitconfig`
- **凭据**(所有 Git 版本):`git/git-credential.sh` 写在主配置里,不依赖 `includeIf ondarwin/onlinux`(需 Git 2.36+)
- macOS:`osxkeychain` → 回退 `store`(`~/.git-credentials`)
- Linux:`libsecret` → 回退 `store`
- 平台扩展(可选):`git/.gitconfig.darwin` / `.gitconfig.linux` 仅在高版本 Git 下通过 includeIf 加载
## 边界(不要做的事)