Undoing Changes interview questions

18 Undoing Changes questions from the Git bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "moving the branch tip to an earlier commit while leaving both the index and working files untouched"?

Mid
  1. A.Reflog
  2. B.Revert
  3. C.Mixed reset
  4. D.Soft reset

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "moving the tip back and clearing the index but keeping edits in the working files, the default mode"?

Mid
  1. A.Soft reset
  2. B.Restore
  3. C.Mixed reset
  4. D.Revert

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "moving the tip back and discarding all index and working-file changes to match the target snapshot"?

Senior
  1. A.Restore
  2. B.Hard reset
  3. C.Revert
  4. D.Soft reset

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history"?

Mid
  1. A.Soft reset
  2. B.Hard reset
  3. C.Revert
  4. D.Reflog

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "discarding uncommitted modifications in a path to return it to its last recorded content"?

Junior
  1. A.Revert
  2. B.Mixed reset
  3. C.Hard reset
  4. D.Restore

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

17. Which term means: "a local log of where references pointed over time, enabling recovery of commits that seem lost"?

Senior
  1. A.Reflog
  2. B.Hard reset
  3. C.Mixed reset
  4. D.Restore

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Undoing Changes question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers