I found two ways to get the latest tag but what is difference, if there is 
a difference?

Solution 1:
git describe --tags $(git rev-list --tags --max-count=1)

Solution 2:
git for-each-ref refs/tags --sort=-authordate --format='%(refname)' 
--count=1 | sed 's/^refs\/tags\///'

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to