注意
GitHub Desktop 仅在您的 Git 客户端默认配置为签署提交时才支持提交签名。
-
要签署标签,请在
git tag命令中添加-s。$ git tag -s MYTAG # Creates a signed tag -
通过运行
git tag -v [tag-name]来验证已签署的标签。$ git tag -v MYTAG # Verifies the signed tag
您可以使用 GPG、SSH 或 S/MIME 在本地签署标签。
注意
GitHub Desktop 仅在您的 Git 客户端默认配置为签署提交时才支持提交签名。
要签署标签,请在 git tag 命令中添加 -s。
$ git tag -s MYTAG
# Creates a signed tag
通过运行 git tag -v [tag-name] 来验证已签署的标签。
$ git tag -v MYTAG
# Verifies the signed tag