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

Quiz: Searching Git History · Question 4 of 10

In git log -- README.md, what is the -- for?

In git log -- README.md, what is the -- for?

  1. A.It turns on verbose mode
  2. B.It shows deleted files only
  3. C.It separates options and branch names from file paths
  4. D.It limits output to two commits
Answer & explanation

Correct answer: It separates options and branch names from file paths

Anything after -- is treated as a path, even if it looks like a branch or option.

Can you get the rest right without peeking?

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

Start the quiz →