Intellij IDEA签署GIT承诺与GPG [英] Intellij IDEA signing GIT commits with GPG

查看:561
本文介绍了Intellij IDEA签署GIT承诺与GPG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GPG签署的GIT提交在终端但不在Intellij Idea中。

GPG signing of GIT commits works in terminal but not in Intellij Idea.

gpg failed to sign the data fatal: failed to write commit object


推荐答案

如果您正在进行GPG签名工作您的GIT在终端提交,但在Intellij Idea中没有,您可以使用 pinentry-mac 。不要忘记更新 gpg.conf gpg-agent.conf 文件。

If you have working GPG signing of your GIT commits in terminal but not in Intellij Idea you can use pinentry-mac. Don't forget to update your gpg.conf and gpg-agent.conf files as well.

brew install pinentry-mac
echo "no-tty" >> ~/.gnupg/gpg.conf
echo $(which pinentry-mac) >> ~/.gnupg/gpg-agent.conf

此处有更多信息: https://nathanielhoag.com/blog/2016/09/05/signing-commits- in-git /

这篇关于Intellij IDEA签署GIT承诺与GPG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆