Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想直接从 git 创建一个标签和他们的消息的(乳胶)表,因此我需要获取与以下模式匹配的所有标签:
/^v([0-9]|\.)*/
或者。
这个怎么做?我的尝试:
git log --all --tags --grep="^v([0-9]|\.)*" --pretty=format:"%d & %s & %b"
失败并且不返回任何内容(在 linux 内核源代码树上测试)。
$ git for-each-ref --format='%(objectname)' \ 'refs/tags/v.*' 'refs/tags/v[0-9]*' | \ xargs -n 1 git log -1 --pretty=format:"%d & %s & %b"