Importing GPG keys

Assuming the you have the GPG.

gpg --import <key-file>

If you have a password you'll be prompted.

On a Mac there are tons of articles how to set up git + pinetry so search for that.

Bonus: Adding more emails to the key.

get the key

gpg --list-secret-keys --keyid-format=long

example output

/home/youruser/.gnupg/secring.gpg
---------------------------------
sec   rsa4096/KEYID 2023-01-01 [SC]
      123456789ABCDEF123456789ABCDEF1234567890
uid                 [ultimate] Your Name <your@email.com>
ssb   rsa4096/YYYYY 2023-01-01 [E]

then

gpg --edit-key <KEYID>

then

gpg> adduid

and follow the prompts