CompTIA Linux+ (XK0-004) — Question 234

An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit `"m `changed the property file` server.property. Which of the following commands did the engineer fail to perform?

Answer options

Correct answer: D

Explanation

The correct answer is D because after committing changes locally, the engineer needs to use 'git push' to upload those changes to the remote repository. Options A and B are irrelevant to this context as they pertain to initializing a repository and merging changes, respectively. Option C is also incorrect because while 'git add' is necessary before committing, the question specifically asks about the action not taken after the commit.