跳至主要内容

签署标签

您可以使用 GPG、SSH 或 S/MIME 在本地签署标签。

注意

GitHub Desktop 仅在您的 Git 客户端默认配置为签署提交时才支持提交签名。

  1. 要签署标签,请在 git tag 命令中添加 -s

    $ git tag -s MYTAG
    # Creates a signed tag
    
  2. 通过运行 git tag -v [tag-name] 来验证已签署的标签。

    $ git tag -v MYTAG
    # Verifies the signed tag
    

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.