Last active
July 13, 2023 07:52
-
-
Save tapsandswipes/4656912 to your computer and use it in GitHub Desktop.
Reset tag in git
This file contains hidden or 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
git push origin :refs/tags/<tagname> // Delete tag from remote | |
git tag -fa <tagname> // Reset tag to current commit | |
git push origin master --tags // Push tag to remote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked great. Thanks for the gist.
Quick note, if your tag as a GitHub release associated with it, you have to edit it so it can re-match with the newly created tag.