Skip to content

Instantly share code, notes, and snippets.

@jasperfurniss
Created March 8, 2023 17:53
Show Gist options
  • Save jasperfurniss/3218e2a42d460cc10a12dfdb530da04e to your computer and use it in GitHub Desktop.
Save jasperfurniss/3218e2a42d460cc10a12dfdb530da04e to your computer and use it in GitHub Desktop.

Git Commit Signatures

To understand why your commits are not being verified, click the badge in github.

Screen Shot 2023-03-08 at 12 00 09 PM

If it's a mismatched email, you need to make sure that your git config email matches your settings in your github account.

You can do, by following these steps:

1) Run: git config --list

At the top you should see something that says user.email.

user.name=Jasper Furniss
user.email=jasperfurniss@gmail.com

2) Verify that your email there matches your primary email in your github settings, which can be found here:

Screen Shot 2023-03-08 at 11 46 35 AM

3) If they are mismatched, you can set your global one from your terminal:

git config --global user.email jasperfurniss@gmail.com

4) You can also make sure your settings for signing commits is set to true:

git config --global commit.gpgSign true
git config --global tag.gpgSign true

5) Finally you can update anything and make a small commit. You should now see a green verified in Github.

@thestephenmarshall
Copy link

One thing that had to be done to make this work was git config --global user.signingkey=GPG_KEY_SHA_HERE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment