Is there any way to check which git tag is deployed or being used? -


locally can check tags available use command git tag, if need know tag being used locally, command need use.

i guess command returns tag name of checked out commit if tagged.

you can write this:

git tag --list --points-at=$(git rev-parse head) 

explanation:

git rev-parse head shows commit hash of checked out commit

git tag --list --points-at={commit-id} prints tag pointing @ specific commit.

note command might return nothing, if checked out commit not tagged


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -