↳ 📅 8/25/2022 ✍ guide, software, programming
Want to read this on Substack? Now you can!
Here's how to use our SSH Public Key for Verified GitHub Commits. Depending on the company you work for, this might be a required task as of 2022. Don't fret -- sing your SSH public keys to gain that green "Verified" badge on GitHub is very much possible and easy. Here's how to do it:
which gitby default on macOS will be
/usr/bin/gitfrom Xcode. We don't want to use this version.
brew unlink git && brew link git
which gitshould reveal now
git config --global gpg.format ssh
pbcopy < ~/.ssh/id_rsa.pubor whatever your key is called. Use ed25519 if you prefer.
git config --global user.signingkey 'PASTE-YOUR-PUBKEY-HERE'
id_rsa.pub(or equivalent) as a Signing Key, not the Authentication Key that you probably already use it for.
hope it helps.