Cherry
Cherry

Reputation: 33598

Push tag without push commit to remote repository with TortoiseGit

A console git client has a git push origin <tag_name> command for pushing a tag without commit to a remote repository.

What's the equivalent in TortoiseGit GUI?

Upvotes: 33

Views: 18079

Answers (2)

MrTux
MrTux

Reputation: 34002

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.

Upvotes: 29

user3290142
user3290142

Reputation: 409

  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)

Git Sync window

Upvotes: 36

Related Questions