代码片段
#29
Replies: 1 comment
-
获取最近两次发布(通过tag判断)之间的提交记录,分支上的 tag 主要包含 v1.0、debug@20220321010203 和 release@20220321010203 三种标签,通过 exclude 排除掉非 release 的标签 #!/usr/bin/env bash
tagName="$(git describe --tags --exclude "debug@*" --exclude "v*" HEAD^1)"
git log --pretty="format:%an | %ar | %s" "${tagName:0:19}"...HEAD |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
一些临时的代码片段,不常用但是写起来有需要花点时间
Beta Was this translation helpful? Give feedback.
All reactions