Refer to the exhibit. A developer is working on a project and makes a few changes to test the code. After testing, the developer wants to revert to last commit but fails. Which command discards local changes?
git reset --hard
This command discards all local changes permanently and resets the working directory to the last committed state.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.
daniii89
3 months ago