相关疑难解决方法(0)

如何列出所有Git标签?

在我的存储库中,我使用以下命令创建了标记.

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)

如何列出存储库中的所有标记?

git git-tag

607
推荐指数
9
解决办法
55万
查看次数

默认情况下,如何将 git 配置为 PGP 签署我的标签(不是我的提交)

我目前有以下几点~/.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)

git

4
推荐指数
1
解决办法
1118
查看次数

标签 统计

git ×2

git-tag ×1