gpg failed to sign the data, failed to write commit object
3
votes
2
answers
3862
views
I have searched the whole universe this error but i could not find any helpful tips.
I have created a key using keybase and added my public key to github gpg
my
gpg --list-secret-keys --keyid-format LONG
is this
--------------------------------
sec rsa4096/7E8*******60B47B 2021-03-06 [SC] [expires: 2037-03-02]
51FBCD0E******************014D4860B47B
uid [ultimate] Fatih
uid [ultimate] Fatih
ssb rsa4096/15BBF8A123C4AC1B 2021-03-06 [E] [expires: 2037-03-02]
my .gitconfig is this
[user]
signingkey = 7E8*******60B47B
email = 73314940+kgnfth@users.noreply.github.com
name = kgnfth
[commit]
gpgsign = true
[gpg]
program = gpg
i added export GPG_TTY=$(tty)
to my .zshrc file
Everytime i run git commit -m "first commit",
i get this error
error: gpg failed to sign the data
fatal: failed to write commit object
I dont see anything wrong with the signing key
i also tried changing gpg to gpg2 but the same error appears
i am out of idea
i need your help
Thank you.
Asked by Fatih Akgun
(131 rep)
Mar 6, 2021, 12:41 AM
Last activity: Dec 24, 2023, 06:49 AM
Last activity: Dec 24, 2023, 06:49 AM