git - 如何列出自 X 日期以来匹配模式的标签?

标签 git git-commit git-log git-tag

我需要列出在 Y 日期之后创建的与模式 X 匹配的所有标签。

我尝试过以下方法:

git show --quiet $(git rev-parse --tags="linux*" --since="1 month")

但这列出了我的存储库中与 linux* 匹配的所有标签。

我也尝试过:

git show --quiet $(git rev-list --tags="linux*" --since="1 month")

这列出了自上个月以来的所有标签,但不考虑模式。

最佳答案

您可以自定义git log:

git log --tags=linux* --since="1 month" --no-walk

来自git-log文档:

--no-walk ... Only show the given commits, but do not traverse their ancestors. ...

关于git - 如何列出自 X 日期以来匹配模式的标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50562840/

相关文章:

Git/Perforce 排除规则 - 允许忽略同级文件是否存在?

git - 使用 hub、github-gem 还是在使用 github repo 时坚持使用 git?

swift - 我不小心 stash 了更改并将我的 Xcode 项目还原为旧版本。我如何将其还原为我 stash 的更改?

git - 如何使 commitizen 覆盖默认的 git commit 命令

github - 如何通过 GitHub API 获取 Git 标签中的所有提交

git - "git whatchanged -- filename"和 "git rev-list -- filename"有什么区别

单个修订的 git 日志

windows - Git Status 使用 Cygwin 挂起

git - 从 git commit 确定分支名称

Git 跟踪文件中移动/删除的代码块