Note: Vigilant mode is currently in beta and subject to change.
About vigilant mode
When you work locally on your computer, Git allows you to set the author of your changes and the identity of the committer. This, potentially, makes it difficult for other people to be confident that commits and tags you create were actually created by you. To help solve this problem you can sign your commits and tags. For more information, see "Signing commits" and "Signing tags." GitHub marks signed commits and tags with a verification status.
By default commits and tags are marked "Verified" if they are signed with a GPG or S/MIME key that was successfully verified. If a commit or tag has a signature that can't be verified by GitHub, we mark the commit or tag "Unverified." In all other cases no verification status is displayed.
However, you can give other users increased confidence in the identity attributed to your commits and tags by enabling vigilant mode in your GitHub settings. With vigilant mode enabled, all of your commits and tags are marked with one of three verification statuses.
状态 | 说明 |
---|---|
已验证 | 提交已签名,签名已成功验证,并且提交者是启用警戒模式的唯一作者。 |
部分验证 | 提交已签名,签名已成功验证,但提交的作者:a) 不是提交者,并且 b) 已启用警戒模式。 在这种情况下,提交签名并不保证作者的同意,� 此提交只得到部分验证。 |
未验证 | 以下任一项是正确的: - 提交已签名,但签名� 法验证。 - 提交未签名,并且提交者已启用警戒模式。 - 提交未签名,并且创建者已启用警戒模式。 |
You should only enable vigilant mode if you sign all of your commits and tags and use an email address that is verified for your account on GitHub Enterprise Server as your committer email address. After enabling this mode, any unsigned commits or tags that you generate locally and push to GitHub will be marked "Unverified."
您可以在 GitHub Enterprise Server 上检查已签名提交或� �记的验证状态,并查看提交签名未验证的原� 。 有关详细信息,请参阅“检查提交和� �记签名验证状态”。
Enabling vigilant mode
-
在任何页面的右上角,单击个人资料照片,然后单击“设置”。
-
In the user settings sidebar, click SSH and GPG keys.
-
On the SSH Settings page, under "Vigilant mode," select Flag unsigned commits as unverified.