我需要列出在Y
date之后创建的所有与模式X
匹配的标签。
我尝试过以下几种方法:
git show --quiet $(git rev-parse --tags="linux*" --since="1 month")
但这列出了我的存储库中与linux*
匹配的所有标签。
我也尝试过:
git show --quiet $(git rev-list --tags="linux*" --since="1 month")
这列出了自上个月以来的所有标签,但没有考虑模式。
发布于 2018-05-28 17:57:43
您可以自定义git log
git log --tags=linux* --since="1 month" --no-walk
从git-log
文档中:
--no-walk ...只显示给定的提交,但不遍历它们的祖先。...
https://stackoverflow.com/questions/50562840
复制相似问题