How to make your commit verified in github fastly

If you have a pull request to an external repo, it would show a "Unverified" status ,like blow:

The following instructions will help you config quickly to achive that.

1ssh-keygen -t ed25519 -C "me@jokey.li"
2# You can use all prompt default options if you like.
1# start ssh-gaent 
2eval "$(ssh-agent -s)"
3
4# add keys
5ssh-add --apple-use-keychain ~/.ssh/id_ed25519
6ssh-add ~/.ssh/id_ed25519 # or if you are in linux to use this command
bash
1vi ~/.ssh/config
2# Add fllowing config in it.
3Host github.com
4 AddKeysToAgent yes
5 IdentityFile ~/.ssh/id_ed25519
bash

Ref Github Docs: Adding a new SSH key to your GitHub account - GitHub Docs.

1   git config --global gpg.format ssh
2   git config --global user.signingkey  ~/.ssh/id_ed25519.pub
3   git config --global commit.gpgsign true 
bash
1   # add some new changes, commit and push your changes.
2   git commit -am "update cmd"
3   git push
bash

Login to github to check commit entries, whether there is a "Verified" status . like below:

Ref:

About commit signature verification - GitHub Docs

Generating a new SSH key and adding it to the ssh-agent - GitHub Docs

Adding a new SSH key to your GitHub account - GitHub Docs

Tell Git about your signing key

Signing commits - GitHub Docs

Posts in this series