git 获取版本信息

 git describe --exact-match --tags $(git log -n1 --pretty='%h')
 git rev-parse --short HEAD)


posted @ 2022-11-25 14:28  焦耳|程  阅读(57)  评论(0编辑  收藏  举报