Correct Answer: git reset --hard
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Git Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Git MCQ Questions
How can I get the commit ID?
How do you stage all changes?
Which one of the following commands lists REMOTE branches only?
Which command deletes the branch named "stinky" regardless of merge status ?
What command undoes all changes since the last commit?
What is the difference between git fetch and git pull
You have just completed rebasing your master branch and need to manually update the remote master, even though there is a merge conflict. How can you accomplish this?
What information do Git reflogs (reference logs) store?
After starting to work on a new feature and creating new files in the working directory related to it, the customer determined the feature was no longer required. What command can be used to remove the untracked files from the working directory ?
Which use case is NOT a good candidate for a Git hook?