Git commit signing GPG issue

2019-05-18 17:42发布

问题:

I am having the following issue when I am trying to create a commit using Git Extensions and SourceTree

"C:\Program Files\Git\bin\git.exe" commit -F 
"C:\Code\XXX\.git\COMMITMESSAGE"
gpg: keyblock resource 'C:/Code/XXX/%appdata%/gnupg/pubring.kbx': No 
such file or directory
gpg: skipped "ZZZZZZZZZZ": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object
Done

My pubring.kbx exists in my %appdata% directory but why is it prefixing the repo path to it?

This is on a windows machine FYI. I have this working on another windows machine but can't figure out what is different here