In the article Adding Verified Badge to Github Commit, gpg key signature was configured as a credential to indicate the trustworthiness of git commits. However, I gradually found it a bit troublesome to use the signature because gpg keys don't have many other uses in my daily life. Recently, github added support for displaying commits signed by SSH keys. SSH keys are used much more frequently in daily life, so I configured it and wrote an article to document the operation process.
git config --global gpg.format ssh
git config --global user.signingKey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true
git config --global tag.gpgsign true
In general, after configuring these options, you can successfully add the signature. If you are prompted with ssh is an unsupported format
when committing with git, it means that the current version of git does not support signing commits with SSH keys, and you need to update the git on your system.