Why does not the gpg-agent work fot git signing?

asked 2017-06-01 05:09:40 -0500

rugk gravatar image

I am signing my commits and git tags. This uses GPG.

When signing things using the command line in the "normal way" everything works, but when using git I get the message (loosely translated):

gpg: The gpg agent is not available in this session

(German original:)

gpg: GPG-Agent ist in dieser Sitzung nicht vorhanden

And I have to enter my password in the command line (CLI). And when I type in gpg-agent it tells me the agent is (already) available, so it is certainly there.

So why does it happen and how can I use the gpg-agent there?

edit retag flag offensive close merge delete