Beginner
Git & Version Control
Q13 / 100
What command creates a new branch named "feature-x"?
Correct! Well done.
Incorrect.
The correct answer is B) git branch feature-x
B
Correct Answer
git branch feature-x
Explanation
"git branch <name>" creates a new branch pointer at the current commit, but does not switch to it; "git checkout -b <name>" or "git switch -c <name>" both create and switch to it in one step.
Progress
13/100