git tag
Table of Content
Getting the latest tag of a project¶
I wanted to get the latest tag
https://stackoverflow.com/a/7261049
# one way to do it using describe
git describe --tags --abbrev=0
# another way to use straightforward git tag, and see the recent 3
git tag -l --sort=-creatordate | head -n 3
# checkout the latest tag
git checkout $(git describe --tags --abbrev=0)