Git · Middle · Question 66 of 75

What does git switch - do?

Explanation

Like cd - in a shell, - means "the previous branch", handy for hopping between two branches.

Further reading

Problem with a question

Git · Middle · question 66

Test yourself

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

Take this quiz