在gitlab.com上面看到的,相当好用
git describe --tags `git rev-list --tags --max-count=1`
比如下面的项目:
/cppwizard$ git tag -n10
v1.0.0 simplify console build
v1.1.0 use file.lsp in same folder
v1.2.0 use recursive compile method in cppcms basic app
v1.2.1 remove slash in src_paths
v1.2.2 remove booster in console, remove slash in console