What is the correct way to checkout a tag ? #3361
-
When checking a remote tag out using space, I get into a detached head state. When I check a remote branch out I use "n" from the remotes tab, which creates a new local branch from the remote and sets tracking up, which is perfect, but I can't find anything similar for tags. Also the space entry in the keymap help is struck throuhg: What is the expected, canonical way (if any) of checking out a remote tag with lazygit ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What's wrong with a detached head? This is the natural way for me to checkout a tag (same as typing Alternatively, you could hit enter on the tag to show its commits, and then you can hit The reason why space is struck through is that the meaning of space is different while the menu is open (it triggers the selected command). |
Beta Was this translation helpful? Give feedback.
What's wrong with a detached head? This is the natural way for me to checkout a tag (same as typing
git checkout v1.2.3
on the command line). Also, it focuses on the branches view and selects the detached head, so if you do decide that you'd rather have a local branch, it's easy enough to hitn
from there.Alternatively, you could hit enter on the tag to show its commits, and then you can hit
n
on the first commit to create a branch from there. But it's two keystrokes either way.The reason why space is struck through is that the meaning of space is different while the menu is open (it triggers the selected command).