Git · Middle · Question 66 of 75
What does git switch - do?
- 1Creates a branch named
-at the current commit - 2Deletes the current branch and switches to
main - ✓Correct answer: Switches back to the previously checked-out branch
Explanation
Like cd - in a shell, - means "the previous branch", handy for hopping between two branches.