[英]Get the latest n reachable tags in Git sorted
git describe
检索最新的可达标签。
git tag --list
检索所有标签。
我需要一些接近git describe的东西,但要检索N个最新标签 ,N = 1,2,3 ... 可达 , 按创建日期排序 。
试试这个:
git tag --sort=-creatordate | tail -n <N>
或以相反的顺序:
git tag --sort=creatordate | tail -n <N>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.