我找不到`git tag -s`来要求我的GPG密码 [英] I can’t get `git tag -s` to ask for my GPG password

查看:69
本文介绍了我找不到`git tag -s`来要求我的GPG密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以手动执行一个gpg任务,然后通过pinentry提示输入我的密码,并暂时缓存此密码,我可以执行git tag -s,并且可以正常工作,否则我会得到:

I can manually perform a gpg task that then prompts for my password via pinentry, with this password temporarily cached I can perform git tag -s and it works, other wise I get:

gpg: signing failed: Operation cancelled
gpg: signing failed: Operation cancelled
error: gpg failed to sign the data
error: unable to sign the tag

我正在使用Mac OS X 10.10.2,并通过自制软件安装了git和GnuPG 2.1(现代).如何获得git tag -s要求输入密码?

I’m using Mac OS X 10.10.2 and have git and GnuPG 2.1 (modern) installed via homebrew. How can I get git tag -s to ask for my password?

推荐答案

尝试export GPG_TTY=$(tty)-这应该使您得到提示输入密码的提示( https://docs.github.com/en/free-pro- team @ latest/github/authenticating-to-github/telling-git-about-your-signing-key ).

Try export GPG_TTY=$(tty) - this should let you get prompted for a password (https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/telling-git-about-your-signing-key).

这篇关于我找不到`git tag -s`来要求我的GPG密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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