Correct Answer: git reset --hard HEAD^
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 do you undo all changes since your last commit?
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 displays the difference between the working tree and the stage/index area, as well as files not tracked by Git?
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 ?