I'm trying to enable commit signing on OS X Mojave.
git commit -S -am "Test"
The error is:
error: gpg failed to sign the data
fatal: failed to write commit object
What I tried:
gpg
works fine (see below), did not installgpg1
orgpg2
- Installed GPG KeyChain and added a new key (even added a separate sign-only subkey whithin)
- Installed
pinentry
gpg2 --clearsign
works fine (generates a new .asc file for files, outputs text for plain text)
Questions I looked into and tried every option:
- gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]
- Git error - gpg failed to sign data
What am I doing wrong?