Resolving GPG Fail to Sign Error
If you get...
bash
git commit -m "add yarn.lock"error: gpg failed to sign the datafatal: failed to write commit objectThen...
bash
brew upgrade gnupgbrew link --overwrite gnupgbrew install pinentry-macwhich pinentry-macPut the path into the gpg-agent.conf file.
If there is no gpg-agent.conf file found in the ~/.gnupg/ directory, create one.
bash
touch ~/.gnupg/gpg-agent.confbash
echo "test" | gpg --clearsignbash
git config --global gpg.program gpggit config --global commit.gpgsign truebash
git log --show-signature -1bash
gpgconf --kill gpg-agentMake sure you didn't delete ~.gnupg.