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
This will help you to get rid of it
git config commit.gpgsign false