fatal: cannot run gpg: No such file or directory

Mar 22, 2019 • 预计阅读时间 1 分钟

After installed GPG Site: https://gpgtools.org/

Git commit with error:

fatal: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

Solution:

git config --global gpg.program $(which gpg)

About Signing commits

版权声明:如果转发请带上本文链接和注明来源。

lvv.me

iOS/macOS Developer

Make carthage portable

Using xcrun