CompTIA
XK0-004 · Question #505
XK0-004 Question #505: Real Exam Question with Answer & Explanation
The correct answer is D: Create a new branch and make modifications to the code. See the full explanation below for the reasoning.
Question
A Linux administrator needs to update a script that is stored in the team's Git repository. After the administrator clones the repository, which of the following is the BEST method to ensure merging changes in the future will not overwrite other users' commits to the repository?
Options
- ACreate a new repository based on the existing repository
- BCreate a new folder with the changes under the administrator's name
- CCreate a new script and commit it to the master branch
- DCreate a new branch and make modifications to the code
Community Discussion
No community discussion yet for this question.