git 命令显示所有(轻量级)标签创建日期 [英] git command to show all (lightweight) tags creation dates

查看:20
本文介绍了git 命令显示所有(轻量级)标签创建日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一条线可以显示所有 git 轻量级标签的创建日期?

Is there a one liner that shows me the dates where all git lightweight tags where created ?

类似:git show tags --format=date ?

推荐答案

我在这个链接适合我需要的解决方案:

I found in this link a solution that fits my needs:

git log --tags --simplify-by-decoration --pretty="format:%ai %d"

我已经将该命令放在我的 ~/.alias 中的别名中,所以现在每次运行 gitshowtagbydate 时都会得到我需要的.

I've put that command in an alias in my ~/.alias, so now everytime I run gitshowtagbydate I get what I needed.

这篇关于git 命令显示所有(轻量级)标签创建日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆