zfw0fq
Last Updated: February 25, 2016
·
452
· wajatimur

Get The Latest Git Tag in Repository

Below is the example on how to get the most recent tag in repository.

git describe --tags `git rev-list --tags --max-count=1`

The second part of command as below will return the hash of the tag.

git rev-list --tags --max-count=1