brew install gnupg
- Check public key ID:
gpg --list-secret-keys --keyid-format LONG
- Then where it says
sec rsa4096/KEY_ID
, take theKEY_ID
and put it into the command below: - Copy public key:
gpg --armor --export KEY_ID | pbcopy
- Open up GitHub (or GitLab):
open https://github.com/settings/keys