Skip to content

What is the correct way to checkout a tag ? #3361

Answered by stefanhaller
nicos68 asked this question in Q&A
Discussion options

You must be logged in to vote

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 hit n 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).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nicos68
Comment options

Answer selected by nicos68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants