小编giv*_*all的帖子

在 Windows 上签署 git commit 时出现“无密钥”错误

尝试签署提交时出现此错误:

git commit -S -m "test"
gpg: skipped "EF617ACA9EC3XXXX": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object
Run Code Online (Sandbox Code Playgroud)

这是 gpg --list-secret-keys --keyid-format LONG 的输出

钥匙在那里

sec   rsa4096/EF617ACA9EC3XXXX 2020-05-17 [SC] [expires: 2022-05-17]
      AD68154000A712DCD161D826EF617ACA9EC3XXXX
uid                 [ultimate] name <email@gmail.com>
Run Code Online (Sandbox Code Playgroud)

这是具有相同密钥的 git config

user.signingkey=EF617ACA9EC3XXXX
user.email=email@gmail.com
Run Code Online (Sandbox Code Playgroud)

知道出了什么问题吗?

windows git gnupg

8
推荐指数
4
解决办法
2359
查看次数

curl -xget 在 powershell 5.1 中出现错误

如您所见,curl -xget在 PS 7.2 和 cmd 中运行良好,但在 PS 5.1 中出现错误。

Invoke-WebRequest:找不到与参数名称“xget”匹配的参数。

我究竟做错了什么?

错误的屏幕截图,并排的 Powershell 窗口

windows powershell curl

0
推荐指数
1
解决办法
872
查看次数

标签 统计

windows ×2

curl ×1

git ×1

gnupg ×1

powershell ×1