• 2024-12-07go: 从git得到版本信息的脚本
    一,脚本:#!/bin/bashgitTag=$(if["`gitdescribe--tags--abbrev=02>/dev/null`"!=""];thengitdescribe--tags--abbrev=0;elsegitlog--pretty=format:'%h'-n1;fi)echo$gitTag;buildDate=$(TZ=Asia/Shanghaidate+%Y-%