What does ^{} mean in git?
我在git ls-remote命令的末尾偶然发现了两个奇怪的字符,我想知道这是什么意思?
1 2 | 0e4c39557ccb6789173c refs/tags/2011-11-04 966f8df553f18c486820 refs/tags/2011-11-04^{} |
您是否知道^ {}是什么意思? 另外,为什么这个git标签似乎重复了?
1 | <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.
在这种情况下,-
1 2 3 4 5 6 7 8 9 | $ git show-ref --tags 3521017556c5de4159da4615a39fa4d5d2c279b5 refs/tags/v0.99.9c 423325a2d24638ddcc82ce47be5e40be550f4507 refs/tags/v1.0rc4^{} $ git show-ref --tags --dereference 3521017556c5de4159da4615a39fa4d5d2c279b5 refs/tags/v0.99.9c 6ddc0964034342519a87fe013781abf31c6db6ad refs/tags/v0.99.9c^{} 055e4ae3ae6eb344cbabf2a5256a49ea66040131 refs/tags/v1.0rc4 423325a2d24638ddcc82ce47be5e40be550f4507 refs/tags/v1.0rc4^{} |
从
1 2 | -d --dereference |
Dereference tags into object IDs as well. They will be shown with"^{}" appended.
请注意,
请参见Thomas Gummerer(
建议:pedro rijo(
(由Junio C Hamano合并-
这意味着您只能显示带有
1 | git ls-remote --refs |
Do not show peeled tags or pseudorefs like HEAD in the output.