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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -