I have created a tag from a git branch named v1.0 . I need to do changes in that tag. I have check out the tag using
git checkout tags/v1.0
when I made changes I was able to commit the changes but not able to push to that created tag
There is a section on Re-tagging in the git docs here and I think it perfectly answers your question.
TLDR:
If you did not push the tag, do the changes you want to add, commit and then tag using -f
option. The -f
stands for force
and it will replace the previous tag with this new one.
If you pushed already, it is recommended not to use -f
and release a new tag v1.1
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.