Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Cisco Certified DevNet Associate (DEVASC) · Cisco
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
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.
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.
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