gpt4 book ai didi

git describe --tags --long 向哈希添加字符?

转载 作者:行者123 更新时间:2023-12-03 15:57:51 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Why does git-describe prefix the commit ID with the letter 'g'?

(2 个回答)


3年前关闭。



git rev-parse --short HEAD输出:

6aa3158a
git describe --tags --long输出:
2.3.4-rck1-0-g6aa3158a

我看到后一个命令添加了一个 g到提交哈希。为什么是这样?

最佳答案

来自 man git-describe :

The "g" prefix stands for"git" and is used to allow describing the version of a softwaredepending on the SCM the software is managed with. This is useful in anenvironment where people may use different SCMs.

关于git describe --tags --long 向哈希添加字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46647673/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com