Get The Latest Git Tag in Repository

The command will return the most recent single tag in git repository.

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

More detail at Coderwall