You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First run this command via the command line to see which keys already exist:
gpg --list-secret-keys --keyid-format=long
Make sure the email that is being used in your key on GitHub is the correct email in git by running this command:
git config --list
The output of user name, email and key should match what is in your GPG key on GitHub:
user.name=Margeaux Spring
user.email=youremailhere
user.signingkey=yourgpgkey
If there is an email mismatch, your signed commits are still being tagged as “unverified” on GitHub, and you will need to add the correct email found via the step above with this command:
You cannot assume that git will use the same email for storing and signing the commit.
You can also add more than one email to a key like this:
gpg --list-secret-keys --keyid-format=long
gpg --edit-key YOURKEYTOEDITHERE
a gpg prompt should appear, then you type adduid and press enter
add the email you need to when prompted
after you have followed all the prompts, enter save at the gpg prompt
now enter gpg --armor --export YOUREDITEDKEY
copy and paste the entire block that appears in your terminal, from and including:
-----BEGIN PGP PUBLIC KEY BLOCK----- to -----END PGP PUBLIC KEY BLOCK-----
Next, go to GitHub and click on Settings->SSH & GPG Keys, delete the old key, click the green New GPG Key button, paste in the key you have copied from your terminal output previously and click save.
Your commits should now be automagically verified.
Undefined signature showing next to the commit section.
The text was updated successfully, but these errors were encountered: