【发布时间】:2020-03-30 20:43:13
【问题描述】:
我正在尝试在我关联的所有 Github 存储库中签署我的提交。当存储库由我托管时我可以签名,但当我只是贡献者时无法签名。每次我尝试这样做时都会收到下面提到的这个错误。
could not find identity matching specified user-id: <key id>
error: gpg failed to sign the data
fatal: failed to write commit object
下面是我的 .gitconfig 设置
[core]
editor = \"C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Cod>
[user]
email = <my email id>
name = <my name>
signingkey = <key id>
[commit]
gpgsign = false
[gpg]
program = gpg
我们将不胜感激。
【问题讨论】:
标签: git github git-commit gnupg sign