How push tag without push a commit to remote repository with TortoiseGit?

梦想的初衷 提交于 2020-07-02 11:35:09

问题


A console git client has a git push origin <tag_name> command for pushing a tag without commit to a remote repository. Is there analog in TortoiseGit GUI?


回答1:


  1. After Creating the Tag
  2. Right click in the repo folder
  3. From the context menu select "Git Sync..."
  4. Change the "Push" drop down to "Push tags" (this will initiate the push)




回答2:


In order to push a specific tag just 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.

enter image description here

This will result in 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/questions/29958930/how-push-tag-without-push-a-commit-to-remote-repository-with-tortoisegit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!