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

后端 未结 6 772
独厮守ぢ
独厮守ぢ 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:40

    You can use:

    git tag --contains 
    

    that shows all tags at certain commit. It can be used instead of:

    git tag --points-at HEAD
    

    that is available only from 1.7.10.

提交回复
热议问题