exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 23 discussion

Actual exam question from Cisco's 200-901
Question #: 23
Topic #: 1
[All 200-901 Questions]

How does a developer create and switch to a new branch called `my-bug-fix` to develop a product fix?

  • A. git checkout -b my-bug-fix
  • B. git branch -b my-bug-fix
  • C. git branch my-bug-fix
  • D. git checkout my-bug-fix
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Frap
7 months, 3 weeks ago
git branch is used to create branch Git checkout = the act of switching between different versions of a target entity. The git checkout command operates upon three distinct entities: files, commits, and branches.
upvoted 2 times
...
macxsz
1 year, 5 months ago
Selected Answer: A
A It is in the book: git checkout [-b] (branchname or commit) The -b argument is useful for combining the git branch command with the checkout function and saves a bit of typing by creating the branch and checking it out (switching to it) all at the same time.
upvoted 2 times
...
designated
1 year, 9 months ago
A is correct: The git checkout command accepts a -b argument that acts as a convenience method which will create the new branch and immediately switch to it. https://www.atlassian.com/git/tutorials/using-branches/git-checkout
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...