XK0-005 · Question #507
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
The correct answer is D. git clone https://github.com/comptia/linuxt+-.git. The command that will maintain version control while making some changes in the IaC declaration templates is git checkout -b <new-branch>. This command uses the git tool, which is a distributed version control system that tracks changes in source code and enables collaboration…
Question
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
Options
- Agit clone https://github.com/comptia/linux+-.git
- Bgit clone https://qithub.com/comptia/linux+-.git
- Cgit clone https://github.com/comptia/linux+-.git
- Dgit clone https://github.com/comptia/linuxt+-.git
How the community answered
(35 responses)- A3% (1)
- B6% (2)
- C3% (1)
- D89% (31)
Explanation
The command that will maintain version control while making some changes in the IaC declaration templates is git checkout -b <new-branch>. This command uses the git tool, which is a distributed version control system that tracks changes in source code and enables collaboration among developers. The checkout option switches to a different branch in the git repository, where a branch is a pointer to a specific commit in the history. The -b option creates a new branch with the given name, and switches to it. This way, the administrator can make changes in the new branch without affecting the main branch, and later merge them if needed.
Topics
Community Discussion
No community discussion yet for this question.