feat .gitconfig: signingkey GPG簽名綁定

This commit is contained in:
2025-05-07 04:30:17 +08:00
parent cee037e8dd
commit 7de43b89a5
4 changed files with 18 additions and 2 deletions

View File

@@ -3,9 +3,16 @@
smudge = git-media-smudge %f
[user]
name = {{ .name | quote }}
email = {{ .email | quote }}
email = {{ .email | quote }}{{ if .signingkey }}
signingkey = {{ .signingkey | quote }}{{ end }}
{{ if .signingkey }}
[commit]
gpgsign = true
[tag]
gpgSign = true
{{ end }}
[core]
editor = vim
excludesfile = {{ joinPath .chezmoi.homeDir ".gitignore_global" }}
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"