I wanted to massively delete tags in my remote git repository, in some documents I found from Google, I found the command as
git ls-remote --tag | awk '/(.*)(\s+)(.*)/ {print ":" $2}' | xargs git push origin
or something like that. (the same problem will show phantom tags ending in ^ {})
If you want to do the same as me, you can try using the git show-ref command
git show-ref --tag | awk '/(.*)(\s+)(.*)/ {print ":" $2}' | xargs git push origin
In the latter case, you will not be blocked by this problem.
Charles
source share