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同步后,也会看到这些标签。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-11-08
  • 2021-12-20
  • 2021-12-05
  • 2021-12-15
猜你喜欢
  • 2021-06-16
  • 2022-01-10
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案