我在我的Mac上下载了sourcetree应用程序,并将本地git代码库添加到其中。每当我尝试存储或提交内容时,sourcetree会抛出与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应用程序配置任何类型的签名。
如果您能帮助我解决这个问题,那将是非常有帮助的。