Skip to content

Commit

Permalink
Use SSH key for commit sign
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Apr 11, 2024
1 parent b227bd7 commit 192eb1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dot_gitconfig.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,18 @@
{{- end }}
{{- if .signingkey }}
signingKey = {{ .signingkey }}
{{- else }}
signingKey = ~/.ssh/id_ed25519.pub
{{- end }}
[tag]
forceSignAnnotated = true
[commit]
gpgSign = true
[gpg]
{{- if eq .chezmoi.os "windows" }}
{{- if .signingkey }}
{{- if eq .chezmoi.os "windows" }}
program = "C:\\Program Files (x86)\\gnupg\\bin\\gpg.exe"
{{- end }}
{{- else }}
format = ssh
{{- end }}
Expand Down

0 comments on commit 192eb1a

Please sign in to comment.