How to list all tags pointing to a specific commit in git

后端 未结 6 780
独厮守ぢ
独厮守ぢ 2020-12-02 15:26

I have seen the commands git describe and git-name-rev but I have not managed to get them to list more than one tag.

Example: I have the sh

6条回答
  •  甜味超标
    2020-12-02 15:36

    git tag --points-at HEAD

    Shows all tags at HEAD, you can also substitute HEAD with any sha1 id.

提交回复
热议问题