Intellij IDEA signing GIT commits with GPG

荒凉一梦 提交于 2019-12-24 05:08:07

问题


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

回答1:


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

More information here: https://nathanielhoag.com/blog/2016/09/05/signing-commits-in-git/



来源:https://stackoverflow.com/questions/43866966/intellij-idea-signing-git-commits-with-gpg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!