Last active
March 20, 2020 10:57
-
-
Save bouassaba/78de97577bb931a6f403fd35048051a4 to your computer and use it in GitHub Desktop.
override git tag
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
# Delete the tag on any remote before you push | |
git push origin :refs/tags/<tagname> | |
# Replace the tag to reference the most recent commit | |
git tag -fa <tagname> | |
# Push the tag to the remote origin | |
git push origin master --tags | |
# source: http://stackoverflow.com/questions/8044583/how-can-i-move-a-tag-on-a-git-branch-to-a-different-commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment