Exam 701-100 Topic 3 Question 42 Discussion

Actual exam question for Lpi's 701-100 exam
Question #: 42
Topic #: 3
The file index.php, which is being maintained in a git repository, was changed locally and contains an error. If the error has not been committed to the repository yet, which of the following gitcommands reverts the local copy of index.phpto the latest committed version in the current branch?

Suggested Answer: B Vote an answer

Explanation/Reference:
Reference https://git-scm.com/docs/git-revert

by Goddard at Jan 09, 2026, 01:45 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10