🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.git push --force
  2. B.git switch -c feature
  3. C.git diff --stat
  4. 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 →