我正在尝试在OS X Mojave上启用提交签名。
git commit -S -am "Test"
错误是:
error: gpg failed to sign the data
fatal: failed to write commit object
我尝试的:
gpg
工作正常(参见下文),没有安装gpg1
或gpg2
- 安装了 GPG KeyChain 并添加了新密钥(甚至添加了一个单独的仅签名子密钥)
- 安装了
pinentry
gpg2 --clearsign
正常工作(为文件生成新的 .asc 文件,为纯文本输出文本)
我查看并尝试过的问题:
- gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]
- Git error - gpg failed to sign data
我做错了什么?
/.git-crypt/...
部分。 - mewc