How do you reset your working directory to the last commit in Git?
How do you reset your working directory to the last commit in Git? a) git reset –hard b) git revert HEAD c) git checkout –last d) git reset HEAD Answer: a) git reset –hard Explanation: The git reset –hard command resets your working directory, index (staging area), and HEAD pointer to the state of the […]
How do you reset your working directory to the last commit in Git? Read More »