阅读背景:

SourceTree删除远程不存在的标签(Windows版)_dailipings的专栏_sourcetree 删除tag

来源:互联网 
  1. 新建一个 删除远程不存在的标签.bat 文件,内容如下:
    @echo off
    cd $REPO/.git
    set tagFileName=local-tags.txt
    git tag -l >> %tagFileName%
    for /f %%x in (%tagFileName%) do git tag -d %%x
    git fetch origin --prune
    git fetch origin --tags
    del %tagFileName%
    cd ..
    @echo off
    cd $



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: