🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Git Basics: all 10 questions

Quiz: Git Basics · Question 8 of 10

What does git diff with no options show?

What does git diff with no options show?

  1. A.Changes already committed
  2. B.Changes that are staged
  3. C.Changes in the working directory that are not yet staged
  4. D.The list of branches
Answer & explanation

Correct answer: Changes in the working directory that are not yet staged

Use git diff --staged to see what is staged for the next commit.

Can you get the rest right without peeking?

Take the timed Quiz: Git Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →