Created
June 27, 2023 20:37
-
-
Save christopinka/956c6ad31747280792970a61a1879c93 to your computer and use it in GitHub Desktop.
move git tag to HEAD on master
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 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