Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Signing tags

You can sign tags locally using GPG or S/MIME.

注意:如果 Git 客户端配置为默认对提交进行签名,GitHub Desktop 仅支持提交签名。

  1. To sign a tag, add -s to your git tag command.
    $ git tag -s MYTAG
    # Creates a signed tag
  2. Verify your signed tag by running git tag -v [tag-name].
    $ git tag -v MYTAG
    # Verifies the signed tag

Further reading