How do you push a Git tag to a branch using a refspec?

后端 未结 4 1547
迷失自我
迷失自我 2020-12-07 06:49

I want to force push, for example, my tag 1.0.0 to my remote master branch.

I\'m now doing the following:

git push producti         


        
4条回答
  •  旧巷少年郎
    2020-12-07 07:32

    I create the tag like this and then I push it to GitHub:

    git tag -a v1.1 -m "Version 1.1 is waiting for review"
    git push --tags
    
    Counting objects: 1, done.
    Writing objects: 100% (1/1), 180 bytes, done.
    Total 1 (delta 0), reused 0 (delta 0)
    To git@github.com:neoneye/triangle_draw.git
     * [new tag]         v1.1 -> v1.1
    

提交回复
热议问题