在我的存储库中,我使用以下命令创建了标记.
git tag v1.0.0 -m 'finally a stable release'
git tag v2.0.0 -m 'oops, there was still a major bug!'
Run Code Online (Sandbox Code Playgroud)
如何列出存储库中的所有标记?
我目前有以下几点~/.gitconfig:
[gpg]
program = /usr/local/bin/krgpg
[commit]
gpgSign = true
[tag]
forceSignAnnotated = true
Run Code Online (Sandbox Code Playgroud)
提交要求我使用 PGP 进行签名:
git commit -m "Add package.json"
Krypton ? Requesting git commit signature from phone
Run Code Online (Sandbox Code Playgroud)
但是,我只想签署我的标签,并跳过签署提交。
问题:有什么办法可以让我配置 git 来只签署我的标签
我的意思是,没有别名:
$ git alias.tag 'tag -s'
Run Code Online (Sandbox Code Playgroud)