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 thegitrevisionsmanual:In this case –
refs/tags/2011-11-04is the tag that points to the tag object0e4c39557ccb6789173c. By doingrefs/tags/2011-11-04^{}we can dereference the tag to the final non-tag object, which in this case is –966f8df553f18c486820(a commit). Note that^{}is a noop when applied to non-tag objects.The
git show-refcommand can be use to see tags as well as the final dereferenced non-tag objects:From the
git show-refmanual: