Cisco
300-735 · Question #75
300-735 Question #75: Real Exam Question with Answer & Explanation
The correct answer is D. checkout -b feature1. The command git checkout -b feature1 creates a new branch named feature1 and switches to it in a single step, making it the most efficient one-action command for this task.
Question
An application needs a new feature and a new branch named featured Which single command performs this task quickly using only one action? git___________________________
Options
- A--new-branch feature1
- B--add-branch feature1
- Ccheckout -c feature1
- Dcheckout -b feature1
Explanation
The command git checkout -b feature1 creates a new branch named feature1 and switches to it in a single step, making it the most efficient one-action command for this task.
Community Discussion
No community discussion yet for this question.