CompTIA Linux+ (XK0-004) — Question 151
A systems administrator has finished building a new feature for the monitoring software in a separate Git branch.
Which of the following is the BEST method for adding the new feature to the software's master branch?
Answer options
- A. Merge the changes from the feature branch to the master branch.
- B. Save the changes to the master branch automatically with each Git commit.
- C. Clone the feature branch into the master branch.
- D. Pull the changes from the feature branch into the master branch.
Correct answer: A
Explanation
The best method to integrate the new feature into the master branch is by merging the changes from the feature branch, as this combines the new code with the existing codebase. Saving changes automatically with each commit does not specifically merge branches. Cloning the feature branch into the master branch is not applicable, and pulling changes is not the same as merging, as it may not combine the branches properly.