git 如何使用 TortoiseGit 在不推送提交到远程存储库的情况下推送标签?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29958930/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How push tag without push a commit to remote repository with TortoiseGit?
提问by Cherry
回答by user3290142
回答by MrTux
In order to push a specific tagjust enter the <tag_name>
in the textbox for Local
(it is also possible to select the tag on the RefBrowser after clicking on "?") and empty the Remote
textbox within the Ref
group.
要推送特定标签,只需<tag_name>
在文本框中输入for Local
(也可以在单击“?”后在 RefBrowser 上选择标签)并清空组Remote
内的文本框Ref
。
This will result in git push origin <tag_name>
.
这将导致git push origin <tag_name>
.
If you want to push all tags at once, you can use the Sync dialog (select "Push tags" on the "Push" drop down) as described in https://stackoverflow.com/a/38838166/3906760.
如果您想一次推送所有标签,您可以使用同步对话框(在“推送”下拉菜单中选择“推送标签”),如https://stackoverflow.com/a/38838166/3906760 中所述。