vscode用git报错 gpg: skipped “danan <xx@qq.com>“: No secret key

date
Apr 16, 2021
slug
vscode-gpg-error
status
Published
tags
折腾记
type
Post
summary
vscode用git报错 gpg: skipped “danan <xx@qq.com>“: No secret key
一直用vscode推不了,每次看见到这个小圆点都很想点,但是每次都有报错。
notion image
解决方法:
  1. 安装gunpg 下载地址:下载地址
    1. Github 默认使用了 GPG 进行签名(用其自己的 key ),来保证提交信息来自可靠的来源。
      官方说明:
      You can sign your work locally using GPG or S/MIME. GitHub will verify these signatures so other people will know that your commits come from a trusted source. GitHub will automatically sign commits you make using the GitHub web interface.
      关于gunpg
      GNU Privacy Guard(GnuPG或GPG)是一个密码学软件,用于加密、签名通信内容及管理非对称密码学的密钥。GnuPG是自由软件,遵循IETF订定的OpenPGP技术标准设计,并与PGP保持兼容。[5]
  1. 安装后,配置环境变量 计算机->属性->高级系统设置->环境变量 cmd输入gpg --version显示如下
    1. notion image
      notion image
  1. 生成GPG密钥 看官方文档,写的很详细 文档链接 注意第十二步,不用# Prints the GPG key ID, in ASCII armor format 那一句。
    1. notion image
  1. 在Git Bash终端配置gpg程序位置以及signingkey 没错,到了这一步,我失败了,参考文章 原因是我没有找到gpg2.exe 然后无计可施了嘛!?不!!!!!
    1. notion image
原来在vscode上这个选项打开了,关掉就行
notion image
记一次“失败”的配置之旅,笑

© dana 2023 - 2025