尝试签名提交时,IntelliJ无法提交更改(GPG)

Rya*_*n W 19 git github gnupg intellij-idea

我一直在设置我的开发环境,所以当我创建一个提交时,它会自动由GPG签名.我在这里关注了Githubs的文档:https://help.github.com/categories/gpg/ .

我试图使用IntelliJ的git接口来创建一个提交,但它始终失败并出现此错误.

gpg: cannot open `/dev/tty`: Device not configured
error: gpg failed to sign the data
fatal: failed to write commit object
Run Code Online (Sandbox Code Playgroud)

我直接从我的终端使用git时没有遇到这个错误,我发现有人遇到类似问题的问题(使用Source Tree)并且提到了一些关于GUI没有弹出来输入密码的问题.我假设这与该问题类似.

我该如何解决这个问题呢?

phe*_*anu 22

配置GPG以允许通过将以下内容添加到您的远程程序来远程调用它gpg.conf:

no-tty