Reputation: 535
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
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?
Upvotes: 4
Views: 570
Reputation: 21
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).
Upvotes: 2