I'm on a Windows 10 machine with Gpg4win and Kleopatra installed, as well as the most recent version of git. In Kleopatra I have two OpenPGP certificates loaded, let's say for these e-mails:
[email protected]
with Key-IDAAABBBCC
[email protected]
with Key-IDFFF00011
I have a global git config with these settings:
commit.gpgsign=true
[email protected]
But I have a repository git config with a different, more specific email setting:
But when I try to commit something in that repository I get a pinentry-qt popup with this message:
Please enter the passphrase to unlock the OpenPGP secret key: "John Doe " 4096-bit RSA key, ID 88888888AAABBBCC, created 2018-04-10.
Is there any way to make git ask for the certificate specific to the e-mail I used? Failing that, is there perhaps a way to configure the ID of gpgsign per repository?