Show which git tag you are on?

前端 未结 6 2133
既然无缘
既然无缘 2020-12-07 06:46

I\'m having trouble finding out which tag is currently checked out.

When I do:

git checkout tag1
git branch

I can\'t seem to find

6条回答
  •  执念已碎
    2020-12-07 07:33

    git log --decorate

    This will tell you what refs are pointing to the currently checked out commit.

提交回复
热议问题