赞
踩
一直用vscode推不了,每次看见到这个小圆点都很想点,但是每次都有报错。
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S
gpg: skipped "danan <xx@qq.com>": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object
解决方法:
安装gunpg
下载地址:下载地址
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。