首页 > 解决方案 > 无法签署我的提交(Windows 上的 GPG 密钥)

问题描述

当我尝试提交时出现此错误。

gpg: skipped "<My Key here>": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object

我的 .gitconfig 文件。

[user]
    email = <my email>
    name = <My Name>
    signingkey = <The same key as before>
[gpg]
    program = C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe
[commit]
    gpgsign = true

标签: gitgnupg

解决方案


推荐阅读