Psuedodoro
Psuedodoro

Reputation: 303

How do I remove the unverified tag from unverified Git commits?

Pretty simple, this has happened and I want to remove the tag from all of them easily. Any way to do so?

Picture of commits page on GitHub

Only asking as this looks terrible and unpresentable for when I release my project. Thanks :)

Upvotes: 2

Views: 2993

Answers (2)

Stacks
Stacks

Reputation: 111

In addition to the response above, it's important that for a commit to be "Verified" it must be signed by all committers.

So, if you make a signed commit, which is then reviewed and modified by another person, that commit now becomes Unverified, because it was modified after you made the commit.

Lastly, if you delete an associated commit from Github (such as discarding commits), the commit will also be marked as "unverified"

Upvotes: 0

Enrico Campidoglio
Enrico Campidoglio

Reputation: 59923

GitHub displays the unverified label next to signed commits whose signature can't be verified. It might be due to an expired GPG key or because the key is associated to a different email address than the one recorded in the commits' metadata.

To get rid of that label you'll have to either:

  1. Renew the GPG key used to sign the commits
  2. Associate the email address recorded in the commits to the GPG key used to sign them
  3. Remove the signature from the commits altogether

Note that the third alternative involves rewriting history and all that it entails.

Upvotes: 5

Related Questions