feat: update git credential
This commit is contained in:
@@ -61,7 +61,7 @@ ff reload # 重载 fish 配置
|
|||||||
## Git 配置
|
## Git 配置
|
||||||
|
|
||||||
- 公共配置在 `git/.gitconfig`
|
- 公共配置在 `git/.gitconfig`
|
||||||
- **凭据**(所有 Git 版本):`git/git-credential.sh` 写在主配置里,不依赖 `includeIf ondarwin/onlinux`(需 Git 2.36+)
|
- **凭据**(所有 Git 版本):`git/git-credential.sh` 写在主配置里,使用 `!$HOME/.dotfile/...`(Git 不展开 `~`)
|
||||||
- macOS:`osxkeychain` → 回退 `store`(`~/.git-credentials`)
|
- macOS:`osxkeychain` → 回退 `store`(`~/.git-credentials`)
|
||||||
- Linux:`libsecret` → 回退 `store`
|
- Linux:`libsecret` → 回退 `store`
|
||||||
- 平台扩展(可选):`git/.gitconfig.darwin` / `.gitconfig.linux` 仅在高版本 Git 下通过 includeIf 加载
|
- 平台扩展(可选):`git/.gitconfig.darwin` / `.gitconfig.linux` 仅在高版本 Git 下通过 includeIf 加载
|
||||||
|
|||||||
+1
-1
@@ -127,7 +127,7 @@
|
|||||||
# 凭据:统一 wrapper,不依赖 includeIf ondarwin/onlinux(需 Git 2.36+)
|
# 凭据:统一 wrapper,不依赖 includeIf ondarwin/onlinux(需 Git 2.36+)
|
||||||
# 低版本 Git 也会加载本节;回退为 git-credential-store(~/.git-credentials)
|
# 低版本 Git 也会加载本节;回退为 git-credential-store(~/.git-credentials)
|
||||||
[credential]
|
[credential]
|
||||||
helper = ~/.dotfile/git/git-credential.sh
|
helper = !$HOME/.dotfile/git/git-credential.sh
|
||||||
|
|
||||||
# 以下 includeIf 需 Git 2.36+;仅用于其它平台差异配置(若有)
|
# 以下 includeIf 需 Git 2.36+;仅用于其它平台差异配置(若有)
|
||||||
[includeIf "ondarwin"]
|
[includeIf "ondarwin"]
|
||||||
|
|||||||
Reference in New Issue
Block a user