Created
July 29, 2020 14:13
-
-
Save jantinnerezo/cd574b61ecc7e6474ef2861002f231b1 to your computer and use it in GitHub Desktop.
Update and commit to a existing 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
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
3) Delete and recreate the tag locally | |
git tag -d {tagname} | |
git tag {tagname} | |
4) Delete and recreate the tag remotely | |
git push origin :{tagname} // deletes original remote tag | |
git push origin {tagname} // creates new remote tag | |
5) Update local repository with the updated tag (suggestion by @wyattis) | |
git fetch --tags | |
Original: https://gist.github.com/danielestevez/2044589 Thanks Men! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment