^ {}在git中意味着什么? [英] What does ^{} mean in git?
问题描述
0e4c39557ccb6789173c refs / tags / 2011-11-04
966f8df553f18c486820 refs / tags / 2011-11-04 ^ {}
你碰巧知道这个^ {}是什么意思?此外,为什么这个git标签似乎重复? 符号在 gitrevisions
手册:
< rev> ^ {},例如v0.99.8 ^ {}
后缀^后跟一个空的大括号这意味着对象可以是标签,并递归地引用标签,直到找到非标签对象。 code> 0e4c39557ccb6789173c 是标记对象,
966f8df553f18c486820
是最终解除引用的对象(提交)。
从
git show-ref
手册:
-d
- 取消引用
将对象ID解引用到对象ID中。它们将以^ {}显示。
I stumbled upon two odd characters at the end of a git ls-remote command and I wonder what this means?
0e4c39557ccb6789173c refs/tags/2011-11-04 966f8df553f18c486820 refs/tags/2011-11-04^{}
Do you happen to know what this ^{} means? Also, why does this git tag seems duplicated?
解决方案The
^{}
notation is explained in thegitrevisions
manual:<rev>^{}, e.g. v0.99.8^{}
A suffix ^ followed by an empty brace pair means the object could be a tag, and dereference the tag recursively until a non-tag object is found.
In your case
0e4c39557ccb6789173c
is the tag object and966f8df553f18c486820
is the object ( commit ) that it ultimately dereferences to.From the
git show-ref
manual:-d --dereference
Dereference tags into object IDs as well. They will be shown with "^{}" appended.
这篇关于^ {}在git中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!