Skip Navigation

[Solved] why local user.mail overrides global user.mail in git?

So, I have a GPG key with two noreply email addresses. One for codeberg.org and one email address for github.com. When using the user@noreply.codeberg.org of codeberg as user.mail globally, I can make commits which show up as verified on codeberg.org. But if use the same mail as my git user.mail the commit on github will show up as unverified. Even though the particular repo's mail is set to the noreply email address of github which can be verified with git config user.mail but for some reason the global ~/.gitconfig mail is used to perform committs. Am I doing GPG management wrong or anything else wrong?

11
11 comments
You've viewed 11 comments.