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
Same error can also be caused when you have expired key in your git config.
Please check the content of cat .git/config and look for signingkey value and check if it is expired. If yes update it with the new one.
cat .git/config
signingkey