The key whose key-id is in the signature did not sign this commit

后端 未结 1 879
执念已碎
执念已碎 2021-01-22 16:46

I\'m trying to sign my git commits, but when I push them to GitHub they have the Unverified badge and

The key whose key-id is in the signatu

相关标签:
1条回答
  • 2021-01-22 17:06

    You can either just put no passphrase on your key when you create it, or you can try gpg-agent. For me it didn't work, I still had to provide a passphrase but it's worth a try:

    Update git to at least 2.19.1 because it includes gpg2 now, make sure you use git's gpg and try to use gpg-agent again - it should work now. Only step 2 of your 'gpg-agent' steps should be enough.

    You might need to remove your ~\.gnupg directory including keys if you run into migration problems (beware the error messages can be very misleading), so you can regenerate everything (including keys) using git's gpg.

    I have written the complete instructions in this answer.

    0 讨论(0)
提交回复
热议问题