git lote eliminar secuencia de comandos beta_tag


#删除Tag脚本
tags=$(git tag)

for tag_name in ${tags[@]}
do
    beta="_beta"
    result=$(echo $tag_name | grep "${beta}")
    if [[ "$result" != "" ]]
        then
        res_0=$(git tag -d $tag_name)
        res_1=${res_0:0:3}
        if [ "$res_1" = "Del" ]; then
            git push origin :refs/tags/$tag_name
        fi
    else
        echo $tag_name "不删除"
    fi
done

git pull

Supongo que te gusta

Origin blog.csdn.net/yezuiqingxin/article/details/121857155
Recomendado
Clasificación