What does ^{} mean in git?

后端 未结 2 1546
离开以前
离开以前 2020-11-27 05:43

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
966f8df553f         


        
2条回答
  •  盖世英雄少女心
    2020-11-27 05:56

    Note that git ls-remote has new filter with git 2.8 (March 2016).

    See commit 99c08d4, commit ba5f28b, commit 80b17e5, commit 40a8852, commit 54813bd (18 Jan 2016) by Thomas Gummerer (tgummerer).
    Suggested-by: pedro rijo (pedrorijo91).
    (Merged by Junio C Hamano -- gitster -- in commit bd6934a, 03 Feb 2016)

    That means you can show only the tags with

    git ls-remote --refs
    

    Do not show peeled tags or pseudorefs like HEAD in the output.

提交回复
热议问题