Skip to content

Instantly share code, notes, and snippets.

@delphym
Forked from lucijafrkovic/git_retag
Created October 24, 2018 23:47
Show Gist options
  • Save delphym/256b81087f0109bd545e3e3ddc78a292 to your computer and use it in GitHub Desktop.
Save delphym/256b81087f0109bd545e3e3ddc78a292 to your computer and use it in GitHub Desktop.
Retagging on git
1. list all remote tags
git ls-remote --tags
2. delete local tag
git tag -d V_1_0_1
3. push tag deletion to remote
git push origin :refs/tags/V_1_0_1
4. tag local branch again
git tag V_1_0_1
5. push tag to remote
git push origin tag V_1_0_1
@delphym
Copy link
Author

delphym commented Oct 24, 2018

That's saved my day (y)

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