Spyke
programming·Programmingbyspez

[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 [email protected] 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?

View original on sh.itjust.works
programming.dev

I believe the setting is user.email so maybe confirm that’s what you have set in both? Git will silently ignore settings that aren’t used/defined.

17
glad_catreply
lemmy.sdf.org

You're not a moron, you learned something useful. My experience for the past 20 years is being a moron over and over again, and I make sure to transmit that knowledge.

15

You reached the end

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