如何仅将特定标签推送到远程? [英] How to only push a specific tag to remote?

查看:58
本文介绍了如何仅将特定标签推送到远程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有类似git push --tag tag_a的命令?我只找到git push --tags.

Is there a command like git push --tag tag_a? I only found git push --tags.

推荐答案

您可以简单地使用:

git push origin tag_a

或者(主要是解决标签/分支名称冲突),您可以使用:

Alternatively (mainly to solve tag/branch name clashes), you could use:

git push origin refs/tags/tag_a

这篇关于如何仅将特定标签推送到远程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆