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.
A.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.moving the branch tip to an earlier commit while leaving both the index and working files untouched
C.discarding uncommitted modifications in a path to return it to its last recorded content
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
A.Reflog
B.Revert
C.Mixed reset
D.Soft reset
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Soft reset — moving the branch tip to an earlier commit while leaving both the index and working files untouched
B.Soft reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
C.Soft reset — discarding uncommitted modifications in a path to return it to its last recorded content
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
A.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.moving the tip back and clearing the index but keeping edits in the working files, the default mode
C.a local log of where references pointed over time, enabling recovery of commits that seem lost
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
A.Soft reset
B.Restore
C.Mixed reset
D.Revert
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Mixed reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
B.Mixed reset — a local log of where references pointed over time, enabling recovery of commits that seem lost
C.Mixed reset — moving the tip back and clearing the index but keeping edits in the working files, the default mode
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
A.moving the branch tip to an earlier commit while leaving both the index and working files untouched
B.moving the tip back and discarding all index and working-file changes to match the target snapshot
C.a local log of where references pointed over time, enabling recovery of commits that seem lost
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
A.Restore
B.Hard reset
C.Revert
D.Soft reset
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Hard reset — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.Hard reset — a local log of where references pointed over time, enabling recovery of commits that seem lost
C.Hard reset — moving the tip back and discarding all index and working-file changes to match the target snapshot
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
A.a local log of where references pointed over time, enabling recovery of commits that seem lost
B.moving the branch tip to an earlier commit while leaving both the index and working files untouched
C.moving the tip back and discarding all index and working-file changes to match the target snapshot
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
A.Soft reset
B.Hard reset
C.Revert
D.Reflog
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Revert — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.Revert — moving the tip back and clearing the index but keeping edits in the working files, the default mode
C.Revert — moving the branch tip to an earlier commit while leaving both the index and working files untouched
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
A.discarding uncommitted modifications in a path to return it to its last recorded content
B.moving the tip back and clearing the index but keeping edits in the working files, the default mode
C.a local log of where references pointed over time, enabling recovery of commits that seem lost
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
A.Revert
B.Mixed reset
C.Hard reset
D.Restore
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.Restore — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.Restore — moving the branch tip to an earlier commit while leaving both the index and working files untouched
C.Restore — discarding uncommitted modifications in a path to return it to its last recorded content
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
A.moving the tip back and discarding all index and working-file changes to match the target snapshot
B.a local log of where references pointed over time, enabling recovery of commits that seem lost
C.creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
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
A.Reflog
B.Hard reset
C.Mixed reset
D.Restore
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.Reflog — creating a new commit that applies the inverse of an earlier one, undoing it without rewriting history
B.Reflog — moving the tip back and clearing the index but keeping edits in the working files, the default mode
C.Reflog — discarding uncommitted modifications in a path to return it to its last recorded content
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.