码迷,mamicode.com
首页 > 其他好文 > 详细

获取git项目最后的tag

时间:2015-10-05 00:47:21      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:git

在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


版权声明:本文为博主原创文章,未经博主允许不得转载。

获取git项目最后的tag

标签:git

原文地址:http://blog.csdn.net/csfreebird/article/details/48903213

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!