Undoing Changes interview questions

18 real Undoing Changes questions from the Git bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Soft reset?

Mid
  1. A.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.moving the branch tip to an earlier commit while leaving both the index and working files untouched
  3. C.discarding uncommitted modifications in a path to return it to its last recorded content
  4. D.a local log of where references pointed over time, enabling recovery of commits that seem lost
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Mid
  1. A.Soft reset — moving the branch tip to an earlier commit while leaving both the index and working files untouched
  2. B.Soft reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
  3. C.Soft reset — discarding uncommitted modifications in a path to return it to its last recorded content
  4. D.Soft reset — moving the tip back and clearing the index but keeping edits in the working files, the default mode
Reveal the answer + AI explanation — free account

4. What is Mixed reset?

Mid
  1. A.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.moving the tip back and clearing the index but keeping edits in the working files, the default mode
  3. C.a local log of where references pointed over time, enabling recovery of commits that seem lost
  4. D.moving the tip back and discarding all index and working-file changes to match the target snapshot
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Mixed reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
  2. B.Mixed reset — a local log of where references pointed over time, enabling recovery of commits that seem lost
  3. C.Mixed reset — moving the tip back and clearing the index but keeping edits in the working files, the default mode
  4. D.Mixed reset — moving the branch tip to an earlier commit while leaving both the index and working files untouched
Reveal the answer + AI explanation — free account

7. What is Hard reset?

Senior
  1. A.moving the branch tip to an earlier commit while leaving both the index and working files untouched
  2. B.moving the tip back and discarding all index and working-file changes to match the target snapshot
  3. C.a local log of where references pointed over time, enabling recovery of commits that seem lost
  4. D.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Senior
  1. A.Hard reset — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.Hard reset — a local log of where references pointed over time, enabling recovery of commits that seem lost
  3. C.Hard reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
  4. D.Hard reset — discarding uncommitted modifications in a path to return it to its last recorded content
Reveal the answer + AI explanation — free account

10. What is Revert?

Mid
  1. A.a local log of where references pointed over time, enabling recovery of commits that seem lost
  2. B.moving the branch tip to an earlier commit while leaving both the index and working files untouched
  3. C.moving the tip back and discarding all index and working-file changes to match the target snapshot
  4. D.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Revert — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.Revert — moving the tip back and clearing the index but keeping edits in the working files, the default mode
  3. C.Revert — moving the branch tip to an earlier commit while leaving both the index and working files untouched
  4. D.Revert — a local log of where references pointed over time, enabling recovery of commits that seem lost
Reveal the answer + AI explanation — free account

13. What is Restore?

Junior
  1. A.discarding uncommitted modifications in a path to return it to its last recorded content
  2. B.moving the tip back and clearing the index but keeping edits in the working files, the default mode
  3. C.a local log of where references pointed over time, enabling recovery of commits that seem lost
  4. D.moving the tip back and discarding all index and working-file changes to match the target snapshot
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Restore — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.Restore — moving the branch tip to an earlier commit while leaving both the index and working files untouched
  3. C.Restore — discarding uncommitted modifications in a path to return it to its last recorded content
  4. D.Restore — moving the tip back and clearing the index but keeping edits in the working files, the default mode
Reveal the answer + AI explanation — free account

16. What is Reflog?

Senior
  1. A.moving the tip back and discarding all index and working-file changes to match the target snapshot
  2. B.a local log of where references pointed over time, enabling recovery of commits that seem lost
  3. C.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  4. D.moving the tip back and clearing the index but keeping edits in the working files, the default mode
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Reflog — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
  2. B.Reflog — moving the tip back and clearing the index but keeping edits in the working files, the default mode
  3. C.Reflog — discarding uncommitted modifications in a path to return it to its last recorded content
  4. D.Reflog — a local log of where references pointed over time, enabling recovery of commits that seem lost
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Undoing Changes free