You are not logged in.
Pages: 1
Whenever I try to git sign a commit, I get this error.
git commit -m "message"
error: gpg failed to sign the data
fatal: failed to write commit object
I have tried the following methods to solve this.
1. As I use Zsh and Oh-My-Zsh, I enable gpg-agent plugin.
2. Tried to add this on my shell config export GPG_TTY=$(tty).
3. Edited the ~/.gnupg/gpg-agent.conf to set pinentry-program as pinentry-program /usr/bin/pinentry-curses
I have turned the internet upside down, but I can't seem to solve the problem. Kindly help!
Last edited by now-im (2021-03-20 14:17:06)
Offline
Offline
Get rid of oh-my-zsh completely and try again.
Completely removed oh-my-zsh and config file. Still same result.
Offline
I have solved it myself. Completely Removed folder:
~/.gnupg
After that generated a new GPG key and that somehow solved the problem.
Last edited by now-im (2021-03-20 14:18:56)
Offline
I had the same problem which was caused by trying to sign with an expired key.
After renewing the expiration date the problem disappeared.
Offline
Pages: 1