I cannot commit to git . Every time I try it shows this message.
error: Couldn't load public key 632EA751459C3A1A: No such file or directory?
fatal: failed to write commit object
I'm using Gpg4Win.
I cannot commit to git . Every time I try it shows this message.
error: Couldn't load public key 632EA751459C3A1A: No such file or directory?
fatal: failed to write commit object
I'm using Gpg4Win.
I believe I resolved my issue, perhaps it is the same for you. For some reason I'd set the gpg.format
value to "SSH" in my local Git config.
Simply removing that from my ~/.gitconfig allowed Gpg4Win to resolve the correct location of the key.
git config --global --unset gpg.format
–
Multiple Telling Git about your signing key
To sign commits locally, you need to inform Git that there's a GPG, SSH, or X.509 key you'd like to use.
Make sure you have your ssh agent turned on and running. I have closed strongbox (my password manager and ssh agent) and it has shown this error. The fix is to simply turn your ssh agent on...
remove format = ssh
from ~/.gitconfig
© 2022 - 2024 — McMap. All rights reserved.