简体   繁体   中英

What does the '^{}' at the end of a git tag mean?

when running this command to obtain all available versions from origin...

git ls-remote --tags | grep -i 'refs/tags/dev-[0-9]*\\.[0-9]*\\.[0-9]*' | sort -r | head | grep -i '[^\\/]*$'

I get a list of unusual tags with unexpected endings:

From ****
*******93c7d****************        refs/tags/v0.0.11
*******bc823****************        refs/tags/v0.0.12
*******dcde9****************        refs/tags/V0.0.0
*******64632****************        refs/tags/V0.0.1^{}
*******1c2a1****************        refs/tags/v0.0.8^{}
*******6983d****************        refs/tags/v0.0.5
*******b7070****************        refs/tags/v0.0.6^{}
*******b11b1****************        refs/tags/v0.0.3
*******53965****************        refs/tags/v0.0.7^{}
*******42cf3****************        refs/tags/v0.0.12^{}

(censored for security reasons)

man git-tag and man git-ls-remote don't tell me anything.

Can someone tell me what the ^{} at the end means?

Thanks to the reference given from @amenadiel

This is an excerpt from the website that explains what it is

<rev>^{}, eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM