Skip to content

Instantly share code, notes, and snippets.

@tapsandswipes
Last active July 13, 2023 07:52
Show Gist options
  • Save tapsandswipes/4656912 to your computer and use it in GitHub Desktop.
Save tapsandswipes/4656912 to your computer and use it in GitHub Desktop.
Reset tag in git
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
@samclane
Copy link

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.

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