'Why is git not finding my gpg signing key?

Environment

Windows 10 Using git bash terminal

System and Configuration Info gpg --version

gpg (GnuPG) 2.2.29-unknown libgcrypt 1.9.3-unknown

$git config --get gpg.program

C:\Program Files\Git\usr\bin\gpg.exe

$git config --get user.signingkey

E8E23B818

gpg --list-keys

/c/Users/my.name/.gnupg/pubring.kbx


pub rsa3072 2022-03-17 [SC] [expires: 2024-03-16]

  **E8E23B818**EFEA493DD1F853065C7A9FE0D21AA0D 

uid [ultimate] my name [email protected]

sub rsa3072 2022-03-17 [E] [expires: 2024-03-16]

It's weird that when other people use the gpg command they see much different output

gpg --list-keys

~/.gnupg/pubring.gpg


pub 2048R/35F5FFB2 2016-04-23

uid name (New key) [email protected]

sub 2048R/112A8C2D 2016-04-23

Perhaps I am just setting the signingkey config parameter incorrectly so how can I get the output that others get like shown above?

*here is my attempt to sign and how it fails git tag -s v1.0 -m 'version 1 of this sandbox project' gpg: skipped "E8E23B818": No secret key gpg: signing failed: No secret key error: gpg failed to sign the data error: unable to sign the tag



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source