nerdexam
Cisco

300-735 · Question #75

An application needs a new feature and a new branch named featured Which single command performs this task quickly using only one action? git___________________________

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.

Integrations

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

How the community answered

(39 responses)
  • A
    10% (4)
  • B
    5% (2)
  • C
    3% (1)
  • D
    82% (32)

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.

Topics

#git#branch creation#version control#CLI commands

Community Discussion

No community discussion yet for this question.

Full 300-735 Practice