Skip to content

Instantly share code, notes, and snippets.

@vgrafe
Forked from okunishinishi/Remove all git tags
Created April 12, 2018 13:47
Show Gist options
  • Save vgrafe/b92ea3d90e31ee6d243c7c75dd49aea1 to your computer and use it in GitHub Desktop.
Save vgrafe/b92ea3d90e31ee6d243c7c75dd49aea1 to your computer and use it in GitHub Desktop.
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@vgrafe
Copy link
Author

vgrafe commented Apr 12, 2018

#delete local tags starting with 1.

git tag -d `git tag -l '1.*'`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment