git推送tag到远端服务器

默认情况下,git push并不会把tag标签传送到远端服务器上,只有通过显式命令才能分享标签到远端仓库。
1.push单个tag,命令格式为:git push origin [tagname]
例如:
git push origin v1.0 #将本地v1.0的tag推送到远端服务器
2.push所有tag,命令格式为:git push [origin] --tags
例如:
git push --tags

git push origin --tags


注:上述命令运行后,如果其他人clone远端服务器代码或进行pull同步后,也会看到这些标签。  
 

发布了85 篇原创文章 · 获赞 35 · 访问量 17万+

猜你喜欢

转载自blog.csdn.net/WXXGoodJob/article/details/98593348
今日推荐