CompTIACompTIA
XK0-005 · Question #1694
XK0-005 Question #1694: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1694. The question stem and answer options stay visible for context.
Scripting, Containers, and Automation
Question
A DevOps engineer is working on a local copy of a Git repository. The engineer would like to switch from the main branch to the staging branch but notices the staging branch does not exist. Which of the following Git commands should the engineer use to perform this task?
Options
- Agit branch -m staging
- Bgit commit -m staging
- Cgit status -b staging
- Dgit checkout -b staging
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Git#Branching#Version Control#DevOps