github delete tag code example

Example 1: remove git tag

# Add tags
git tag tagName

# Push tags
git push --follow-tags

# Delete locally
git tag -d tagName

# Delete remote tag:
git tag -d tagName
git push origin :tagName

Example 2: git delete tag name

git push --delete origin tagname

Example 3: git delete local tag

git tag -d <tag>

Example 4: delete git tag remote

git push --delete origin tagname

Example 5: delete tags github

git tag -d $(git tag -l)
git fetch
git push origin --delete $(git tag -l)
git tag -d $(git tag -l)

Example 6: git remove tag from remote

git push origin :tagname