← Quiz: Agentic Coding Tools: all 10 questions
Quiz: Agentic Coding Tools · Question 8 of 10
The agent made changes you do not want. Which command throws away the uncommitted edits in tracked files?
The agent made changes you do not want. Which command throws away the uncommitted edits in tracked files?
- A.git push --force
- B.git switch -c feature
- C.git diff --stat
- D.git restore .
Answer & explanation
Correct answer: git restore .
Working on a branch with Git as your undo button is a core safety rule.
Can you get the rest right without peeking?
Take the timed Quiz: Agentic Coding Tools quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →