You have linked GPG to git and Github, following the instructions on the documentation, but when you tried to sign a commit this message shows up:
error: gpg failed to sign the data
fatal: failed to write commit object
You can track what GPG and git are trying to do with GIT_TRACE=1
: