Sublime Forum

How do I check out a tag?

#1

I found this post: [Sublime Merge] Checkout a tag but it’s pretty old and they don’t have a solution. When I right click on a tag, I still only see ‘Delete’ and ‘Push’.

Is it possible to check out a tag in Sublime Merge?

0 Likes

#2

What version of Merge are you on? I can use the command palette to quickly navigate to a tag using “Navigate to Tag…”, and then I can right click the tag and select “Check out Tag <tag name here>”.

With that said, I’m on the Dev channel and am using version 2043. This is a new feature in 2043 and I do not think it is available yet in the stable branch.

0 Likes

#3

I have Stable Build 2039. I see. I can do the same thing. I can “Checkout Commit” from the Commits panel, but not from the Locations panel. I would have expected to be able to check out from Locations, but this works too, so I’m happy. Thanks!

0 Likes

#4

“Checkout Tags” is available in the Locations context menu in 2043, so it’ll be in the stable branch eventually,

1 Like

#5

You can add a custom menu item as a workaround for pre-2043:

Tag.sublime-menu:

[
	{
		"caption": "Checkout $tag_name",
		"command": "checkout_branch",
		"args": { "branch": "$ref" }
	}
]
0 Likes

#6

Thanks @srbs! Can someone point me to the documentation on how to configure custom menu items?

0 Likes

#7

Menu customization: https://www.sublimemerge.com/docs/menus#customization
Where the Packages directory is: https://www.sublimemerge.com/docs/packages

0 Likes