我需要列出在 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/