-
-
Save ultim8k/766acb389d00b535ae534d5ec547a5e8 to your computer and use it in GitHub Desktop.
Retagging on git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. list all remote tags | |
git ls-remote --tags | |
2. delete local tag | |
git tag -d v1.0.1 | |
3. push tag deletion to remote | |
git push origin :refs/tags/v1.0.1 | |
4. tag local branch again | |
git tag v1.0.1 | |
5. push tag to remote | |
git push origin tag v1.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Friend, makes sense to put
git fetch origin --prune --tags
to sync local tags?