Telling Git about your signing key - GitHub Docs
To sign commits locally, you need to inform Git that there's a GPG, SSH, or X.509 key you'd like to use.