CompTIA Linux+ (XK0-005) — Question 58
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
Answer options
- A. git clone https://github.com/comptia/linux+-.git git push origin
- B. git clone https://qithub.com/comptia/linux+-.git git fetch New-Branch
- C. git clone https://github.com/comptia/linux+-.git git status
- D. git clone https://github.com/comptia/linuxt+-.git git checkout -b <new-branch>
Correct answer: D
Explanation
The correct answer is D because it involves creating a new branch for changes, which is essential for version control. Options A and C do not involve branching, and option B references an incorrect repository URL and an irrelevant command for maintaining version control.