Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 71
A developer plans to create a new bugfix branch to fix a bug that was found on the release branch.
Which command completes the task?
Answer options
- A. git checkout -t RELEASE BUGFIX
- B. git checkout -b RELEASE BUGFIX
- C. git checkout -t BUGFIX RELEASE
- D. git checkout -b BUGFIX RELEASE
Correct answer: D
Explanation
The correct command is 'git checkout -b BUGFIX RELEASE', as it creates a new branch named BUGFIX based on the RELEASE branch. Options A and C incorrectly use the '-t' flag, which is not appropriate for creating a new branch. Option B attempts to create a branch but does not specify the correct order of the branch names.