删除所有 tag 和 release:

1
2
3
4
5
6
# 获取所有的 tag
git tag -l | xargs -n 1 git push --delete origin

# 删除本地的 tag
git tag | xargs git tag -d