Intermediate
Git & Version Control
Q70 / 100
What is the purpose of "git worktree"?
Correct! Well done.
Incorrect.
The correct answer is A) It allows multiple working directories to be checked out from the same repository simultaneously, each on a different branch, without needing separate clones
A
Correct Answer
It allows multiple working directories to be checked out from the same repository simultaneously, each on a different branch, without needing separate clones
Explanation
"git worktree add <path> <branch>" creates an additional working directory linked to the same repository, useful for working on multiple branches simultaneously (e.g. testing a hotfix while a feature is in progress) without stashing or cloning.
Progress
70/100