Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopinka/956c6ad31747280792970a61a1879c93 to your computer and use it in GitHub Desktop.
Save christopinka/956c6ad31747280792970a61a1879c93 to your computer and use it in GitHub Desktop.
move git tag to HEAD on master
git switch master
git pull
git fetch --tags
# see the list of tags
git tag -l
# delete tag locally
git tag -d v0.8.0
# push change to remote
git push origin :refs/tags/v0.8.0 --no-verify
# recreate the tag at HEAD
git tag -f v0.8.0
# push to remote
git push --tags --no-verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment