Add `git` config

bladee.bsky.social 8d3561e3 ff3c015a

verified
Changed files
+56
dot_config
+56
dot_config/git/config.tmpl
···
+
[user]
+
name = {{ .git.name }}
+
email = {{ .git.email }}
+
signingKey = {{ onepasswordRead (printf "%s/public key" .git.sshSigningKeyOpId) }}
+
+
[core]
+
autocrlf = input
+
+
[init]
+
defaultBranch = main
+
+
[commit]
+
gpgsign = true
+
verbose = true
+
+
[pull]
+
ff = only
+
+
[merge]
+
conflictStyle = zdiff3
+
+
[rebase]
+
autoSquash = true
+
+
[push]
+
default = current
+
+
[diff]
+
algorithm = histogram
+
colorMoved = default
+
+
[transfer]
+
fsckObjects = true
+
+
[fetch]
+
fsckObjects = true
+
+
[receive]
+
fsckObjects = true
+
+
[branch]
+
sort = -committerdate
+
+
[tag]
+
sort = taggerdate
+
+
[credential]
+
helper = libsecret
+
helper = oauth
+
+
[gpg]
+
format = ssh
+
+
[gpg "ssh"]
+
program = {{ joinPath .opDir "op-ssh-sign" }}
+
allowedSignersFile = {{ joinPath .chezmoi.homeDir ".config/git/allowed_signers" }}