uTools-Manuals/docs/git/git mktag.html
2019-04-08 23:22:26 +08:00

1 line
1.5 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="c-markdown doc-markdown"><div class="doc-postil"><div class="c-markdown"><h2>名称</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>git-mktag  - 创建一个标签对象</p></div></div><div class="doc-postil"><div class="c-markdown"><h2>概要</h2></div></div><div class="doc-postil"><div class="c-markdown"><pre class="prism-token token language-javascript">git mktag</pre></div></div><div class="doc-postil"><div class="c-markdown"><h2>描述</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>读取标准输入中的标签内容,并创建一个标签对象,也可用于签署其他对象。</p></div></div><div class="doc-postil"><div class="c-markdown"><p>输出是新标签的&lt;object&gt;标识符。</p></div></div><div class="doc-postil"><div class="c-markdown"><h2>Tag 格式</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>一个标签签名文件,被送到这个命令的标准输入,有一个非常简单的固定格式:四行</p></div></div><div class="doc-postil"><div class="c-markdown"><pre class="prism-token token language-javascript">object &lt;sha1&gt;type &lt;typename&gt;tag &lt;tagname&gt;tagger &lt;tagger&gt;</pre></div></div><div class="doc-postil"><div class="c-markdown"><p>随后是一些<code>optional</code>自由格式的消息由旧的Git创建的一些标签可能没有<code>tagger</code>行)。该消息在存在时由标题中的空行分隔。消息部分可能包含 Git 自己不关心的签名,但可以使用 gpg 进行验证。</p></div></div></div>