我从brew安装了GPG。
brew install gpg
这是gnupg2-2.0.30_2版本。
当我提交时,会收到错误信息:
You need a passphrase to unlock the secret key for
user: "Max Mustermann (mycomment) <mm@test.de>"
2048-bit RSA key, ID 1111AAAA, created 2017-01-05
error: gpg failed to sign the data
fatal: failed to write commit object
我使用了以下命令:
gpg --list-secret-keys | grep ^sec
然后它会返回给我:
sec 2048R/1111AAAA 2017-01-05
然后我使用了这个命令:
git config --global user.signingkey 1111AAAA
我提交(commit)时遇到了相同的错误消息,请问该如何解决这个问题?
gpgconf --kill gpg-agent
,然后它就可以正常工作了。 - Boštjan Biber