$ git tag -s v1.5-m 'my signed 1.5 tag'
You need a passphrase to unlock the secret key for
user: "Escape <ecapelife@gmail.com
2048-bit RSA key, ID 800430EB, created 2020-04-18
要驗證一個簽署的標簽,可以運行 git tag -v ,這個命令使用 GPG 來驗證簽名。為了驗證能正常工作,簽署者的公鑰需要在鑰匙鏈中:
$ git tag -v v1.4.2.1object883653babd8ee7ea23e6a5c392bb739348b1eb61type commit
tag v1.4.2.1
tagger Escape <ecapelife@gmail.com>1158138501-0700GIT 1.4.2.1
Minor fixes since 1.4.2, including git-mv and git-http with alternates.
gpg: Signature made Mon Sep 1302:08:252020 PDT using DSA key ID F3119B9A
gpg: Good signature from"Escape <ecapelife@gmail.com>"
gpg: aka "[jpeg image of size 1513]"
Primary key fingerprint:35652A262040 E066 C9A7 4A7D C0C6 D9A4 F311 9B9A
$ git merge --verify-signatures -S signed-branch
Commit 13ad65e has a good GPG signature by ecapelife (Git signing key)<ecapelife@gmail.com>You need a passphrase to unlock the secret key for
user:"ecapelife (Git signing key) <ecapelife@gmail.com>"2048-bit RSA key, ID 0A46826A, created 2014-06-04Merge made by the 'recursive' strategy.README |2++1file changed,2 insertions(+)與50位技術專家面對面20年技術見證,附贈技術全景圖