【问题标题】:what does the hash from `git describe` refer to?`git describe` 中的哈希指的是什么?
【发布时间】:2016-09-21 09:38:45
【问题描述】:
$ git describe --tags --long
test-1-g3c31c73
           \_ ???

g3c31c73 似乎没有指向任何东西...doc 表示它是最近提交的缩写对象名称,但它不是 HEAD 提交哈希,并且find .git/objects -type f | grep g3c31c73 什么也没找到。

【问题讨论】:

    标签: git git-describe git-hash


    【解决方案1】:

    “g”不是提交的一部分。

    尝试使用git show 3c31c73 查找提交3c31c73

    来自git-describe doc

    “g”前缀代表“git”,用于根据管理软件的 SCM 来描述软件的版本。这在人们可能使用不同 SCM 的环境中很有用。

    【讨论】:

      猜你喜欢
      • 2017-05-08
      • 2018-08-23
      • 2018-06-21
      • 2012-12-19
      • 2014-02-16
      • 2010-09-07
      • 2021-03-20
      • 2012-06-19
      • 2013-03-24
      相关资源
      最近更新 更多