You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
signingkey = 88109C73073E7080 # GitHub doesn't play nice with verifying SSH signed commits from Codespaces due to it setting GIT_COMMITTER_EMAIL and GIT_COMMITTER_NAME
21
+
{{- else }}
20
22
signingkey = ~/.ssh/git_signing_ed25519.pub
23
+
{{- end }}
21
24
22
25
# Override default when working in work repos
23
26
[includeIf "hasconfig:remote.*.url:ssh://[email protected]/github/*"] # Requires git 2.36.0 later
@@ -128,22 +131,20 @@
128
131
gpgSign = true
129
132
130
133
[gpg]
131
-
format = ssh
132
-
# {{- if .codespaces }}
133
-
# program = /.codespaces/bin/gh-gpgsign
134
-
# {{- else }}
134
+
{{- if .codespaces }}
135
+
program = /.codespaces/bin/gh-gpgsign
136
+
{{- else }}
137
+
format = ssh # Use SSH everywhere other than Codespaces for now.
135
138
# program = {{- lookPath "gpg" }}
136
-
# {{- end }}
139
+
{{- end }}
137
140
141
+
{{- if .codespaces }}
138
142
[gpg "ssh"]
139
143
allowedSignersFile = ~/.ssh/allowed_signers
144
+
{{- end }}
140
145
141
146
[merge]
142
-
{{- $v := output "git" "--version" | trim | split " " }}{{ if semverCompare ">2.35.0" $v._2 }}
143
-
conflictstyle = zdiff3 # Requires git 2.35 or later which isn't available on Codespaces by default
144
-
{{- else }}
145
-
conflictstyle = diff3
146
-
{{- end }}
147
+
conflictstyle = zdiff3
147
148
148
149
[protocol]
149
150
version = 2
@@ -156,9 +157,7 @@
156
157
157
158
[pull]
158
159
rebase = false
159
-
{{- $v := output "git" "--version" | trim | split " " }}{{ if semverCompare ">2.33.0" $v._2 }}
160
-
twohead = ort # Requires git 2.33 or later which isn't available on Codespaces by default
0 commit comments