I followed GitHub's instructions for telling git about my SSH key, but when I tried to sign a commit
git commit -S
I got this error:
error: Load key
"C:\\Users\\MyName\\AppData\\Local\\Temp/.git_signing_key_tmpC5KwFc": invalid format?
fatal: failed to write commit object
What might I be doing wrong?
For Git to successfully sign the commit,
eval "$(ssh-agent -s)" to start itssh-add -L to list existing keysssh-add ~/.ssh/id_ed25519 to add your keyThen you should be able to sign the commit!
git commit -S
-STo automatically sign all commits, flip the switch in your settings with git config --global commit.gpgsign true
More on verifying your SSH-signed commits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With