1.安装git命令行工具
2.cd到本地仓库根目录
3.获取仓库所有标签(tag)
git tag
显示如下:
![在这里插入图片描述](https://img-blog.csdnimg.cn/3a0d497dc8584608aca5b548bc8fd83f.png#pic_center)
git log v10.3.5.10..v10.5.2.10 --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 + $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }'
执行结果如下
![在这里插入图片描述](https://img-blog.csdnimg.cn/7765535fa03a459d9cfd676cb5a476b0.png#pic_center)