
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?
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.