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?
A. git init server.property
B. git merge server.property
C. git add server.property
D. git push server.property
Sorry but I am a bit confused. It said “changing a web application property file called server.property” so it means the file was already part of the report. shouldn’t be D?.
The engineer has to add it and commit it before he can push it. He failed to add it, and that is why it is C.
Thanks for the answer.
C is correct answer
Why is it C?
https://www.toolsqa.com/git/git-life-cycle/
take a look at the part of “git staging area”