Recently I was writing a small comment-delete PR to omnicron and was surprised when I saw the commits were unverified with a generated profile picture.
Turns out I was commenting on the PR using my personal account but writing the commits with my work account.
Per Domain
[user]
name = Gregory Ganley
email = greg@ganley.dev
signingkey = PERSONAL_KEY_ID
[commit]
gpgsign = true
[includeIf "hasconfig:remote.*.url:*gitlab.com*"]
path = ~/.config/git/config-gitlab-work
[user]
name = Gregory Ganley
email = gregory.ganley@company.com
signingkey = WORK_KEY_ID
Per Repo
[user]
name = Gregory Ganley
email = greg@ganley.dev
signingkey = PERSONAL_KEY_ID
[includeIf "gitdir:~/Developer/work"]
path = ~/.config/git/config-work
[user]
name = Gregory Ganley
email = gregory.ganley@company.com
signingkey = WORK_KEY_ID