在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
linux服务器搭建git服务器方法:http://www.linuxdiyf.com/linux/14680.html
Ubuntu Git服务器搭建及Gitosis安装设置:http://www.linuxdiyf.com/linux/14589.html
搭建git服务器(fedora22-server):http://www.linuxdiyf.com/linux/13141.html
Ubuntu完美安装搭建Git服务器:http://www.linuxdiyf.com/linux/13045.html