git - 无法签署我的提交(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
解决方案
推荐阅读
- c++ - 基于 GTest 的测试二进制文件在构建时失败
- javascript - 带有 indexOf 的 JavaScript 字符串数组或带有字符串作为字段名的对象
- sql - 如何在 oracle 中将日期列默认为比另一个日期列提前 21 天?
- r - RMarkdown + ggplotly 的图形大小
- python - 为什么我的列表会因为 Python 中的 print 语句而发生变化?
- r - 如何使用传单、闪亮的应用程序在地图上显示路径和距离?
- angular - 使用 combineLatest 和 Rxjs 返回 observable 的结果
- visual-studio-code - 在 vscode 启动时修改默认工作台视图设置
- python - matplotlib.image 扭曲颜色
- jenkins - 如何在脚本化的 Jenkinsfile 的并行阶段处理不稳定的 JUnit 结果?