GPG signing Git commits after updating MacOSX hangs on password entry

余生长醉 提交于 2019-12-05 22:24:33

EDIT :

I was also stuck like you at "You need a passphrase to unlock secret key for" and nothing was happening when using GPG with git.

The solution is :

export GPG_TTY=$(tty)

It solves the problem and it'll now ask you for the password, with a beautiful prompt.

Don't forget to add it to your .bashrc (or .profile / .bash_profile) :

echo "export GPG_TTY=$(tty)" >> ~/.bashrc
source ~/.bashrc

Hope it will help you :)

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