问题
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:
- After Creating the Tag
- Right click in the repo folder
- From the context menu select "Git Sync..."
- 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.
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