我在我的mac上下载了sourcetree app,并添加了一个本地git回购。每当我尝试隐藏某些内容或提交某些内容时,sourcetree都会抛出gpg相关的错误。示例错误如下。为什么源码树寻找gpg密钥,而我还没有配置签名?
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree stash save test-stash
/Applications/SourceTree.app/Contents/Resources/bin/gpg: line 2: gpg2: command not found
error: gpg failed to sign the data
Cannot save the current index state
Completed with errors, see above
我无法找出导致此错误的原因。据我记忆,我没有配置任何类型的签名项目或sourcetree应用程序。
如果你能帮我解决这个问题,这将会非常有帮助。
感谢您的答案@HanSooloo。但我更关心'为什么gpg首先被问到?'。我没有为它配置我的git项目。我没有为它配置源码树。那么为什么?'。在互联网上搜索了两天后,我得到了答案。 – Goje87