Question: How does this command alter the currently checked-out branch?
- It resets the working branch to the first commit.
- It sets HEAD to previous commit and leaves changes from the undone commit in the stage/index.
- It deletes all previous commits and resets the repository history back to its initial state.
- It keeps the HEAD at the current commit, but clears all previous commits.
Answer: The correct answer of the above question is Option B:It sets HEAD to previous commit and leaves changes from the undone commit in the stage/index.