DEVASC Exam QuestionsBrowse all questions from this exam

DEVASC Exam - Question 549


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?

Show Answer
Correct Answer:

Discussion

1 comment
Sign in to comment
daniii89Option: A
Feb 7, 2025

git reset --hard This command discards all local changes permanently and resets the working directory to the last committed state.