Beginner
Git & Version Control
Q14 / 100
What does "git checkout <branch>" (or "git switch <branch>") do?
Correct! Well done.
Incorrect.
The correct answer is B) Switches the working directory to reflect the specified branch, updating tracked files accordingly
B
Correct Answer
Switches the working directory to reflect the specified branch, updating tracked files accordingly
Explanation
Checking out (or switching to) a branch updates the working directory's files to match the tip of that branch and moves HEAD to point to it.
Progress
14/100