How do you push a tag to a remote repository using Git?

前端 未结 9 1016
滥情空心
滥情空心 2020-11-22 16:31

I have cloned a remote Git repository to my laptop, then I wanted to add a tag so I ran

git tag mytag master

When I run git tag

9条回答
  •  旧时难觅i
    2020-11-22 17:08

    You can push all local tags by simply git push --tags command.

    $ git tag                         # see tag lists
    $ git push origin       # push a single tag
    $ git push --tags                 # push all local tags 
    

提交回复
热议问题