简体   繁体   中英

Git: How to update a tag description and push to GitHub?

After updating a tag's description following the command below:

git tag <tag name> <tag name> -f -m "<new message>"

How can I push the update to the that tag?

Try with

git push origin master --tags

From the manual

man git push

--tags
   All refs under refs/tags are pushed, in addition to refspecs explicitly listed on the command line.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM