Git · Junior · Question 68 of 75

What does git checkout v1.0 (a tag) leave you in?

Explanation

Tags don't move, so you can't commit "on" them. To fix an old release, create a branch from the tag: git switch -c hotfix v1.0.

Further reading

Problem with a question

Git · Junior · question 68

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz