跳轉到

.gitconfig

In home directory

# ~/.gitconfig

[credential]
    helper = 

[includeIf "gitdir:./git-repo-1/"]
    path = ./git-repo-1/.gitconfig

For my account-specific folder

# ~/git-repo-1/.gitconfig

[core]
    editor = vim

[credential]
    helper = /usr/local/bin/git-credential-manager-core
    credentialStore = gpg

[credential "https://dev.azure.com"]
    useHttpPath = true
[credential "https://gitlab.com"]
    provider = generic
[credential "https://cafe.h3a.moe"]
    provider = generic

[user]
    name = H3arn
    email = [email protected]
    signingkey = 0xFD1106C9445D42D0 

[commit]
    gpgSign = true

See Also : git 配置:工作生活两不误的 includeIf 语法


最後更新: 2022-05-14 23:38:40
建立日期: 2022-05-14 23:38:40
Back to top