freeCodeCamp/guide/chinese/git/git-verifying-commits/index.md

19 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Git Verifying Commits
localeTitle: Git Verifying Commits
---
## Git Verifying Commits
当您与来自世界各地的人一起构建软件时,有时确认提交和标记来自已识别的来源非常重要。 Git支持使用GPG签署提交和标签。 GitHub显示提交和标记何时签名。
![已验证的提交](https://cloud.githubusercontent.com/assets/25792/14253743/87b504be-fa41-11e5-9140-6dc8b7203c31.png)
当您查看已签名的提交或标记时您将看到一个徽章指示是否可以使用上传到GitHub的任何贡献者的GPG密钥来验证签名。您可以通过访问密钥设置页面上传您的GPG密钥。
许多开源项目和公司希望确保提交来自经过验证的来源。对提交和标记进行GPG签名验证可以很容易地看到GitHub知道的提交或标记何时被验证的密钥签名。
![验证签名](https://cloud.githubusercontent.com/assets/25792/14290042/5b27dab2-fb12-11e5-9ff9-44116a7780ea.png)
### 更多信息:
* [签署你的工作](https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work)