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
I solved the problem installing brew install gpg2 then doing git config --global gpg.program gpg2
brew install gpg2
git config --global gpg.program gpg2