[英]how to interpret git describe output
I was playing with git describe: 我在玩git describe:
git branch
branch1
* master
git tag tag1 HEAD~2
git tag tag2 HEAD
git describe --all HEAD~1
tags/tag1-1-gb772e8b
git rev-parse tag1
1ae346a3b91f5dbe4110ae143ce86825d79b82f3
What does it mean by "1-gb772e8b" in "tag1-1-gb772e8b" ? “ tag1-1-gb772e8b”中的“ 1-gb772e8b”是什么意思?
tag1-1-gb772e8b
^ ^ ^
| | |
| | git hash of the commit
| |
| number of commits after the tag
|
|
Most recent tag
This is all in reference to the commit you are giving to git describe. 所有这些都参考了您对git describe所做的提交。 In your case it is HEAD~1, so
您的情况是HEAD〜1,所以
See the documentation for more in-depth information, the output depends on whether there are any tags, and what state the repository is in and arguments you provide to git describe
请参阅文档以获取更深入的信息,输出取决于是否有任何标签,存储库所处的状态以及您为
git describe
提供的参数来git describe
There's also a g
in the hash, gb772e8b
. 哈希中还有一个
g
, gb772e8b
。 The docs describe it as 文档将其描述为
The "g" prefix stands for "git" and is used to allow describing the version of a software depending on the SCM the software is managed with.
“ g”前缀代表“ git”,用于根据管理软件的SCM来描述软件的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.