Currently, I am on Windows running git 2.15.0.windows.1, gpg 2.2.1, and gpg-agent 2.2.1. I am trying to sign a commit with git via pinentry/gpg-agent, however, when signing a commit via git, pinentry never appears and git throws an error. I am still able to sign commits via gpg, but not through git.
> git commit -a -S -m "Signed Commit"gpg: gpg-agent is not available in this sessiongpg: Sorry, no terminal at all requested - can't get inputerror: gpg failed to sign the datafatal: failed to write commit object
I can still sign via gpg without git:
My gpg.conf:
keyserver hkp://keys.gnupg.netno-ttyuse-agent
When I remove the last two lines, gpg will still pop up pinentry, and git can then sign commits again however it will only accept passphrase entry via command line instead of pinentry.
How can I fix the original error and have signing commits pop up pinentry?