I just started using git and I install git and gpg via homebrew. For some reason, I get this error when i do git commit I looked at so many other stackoverflow
git commit
For me a simple brew unintstall gnupg && brew cask reinstall gpg-suite solves the issue.
brew unintstall gnupg && brew cask reinstall gpg-suite
It uninstalls the (in my case) manually homebrew-istalled gpg and reinstalls the whole GPG Suite.