🎙 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 1 of 10

You want commits whose message mentions "invoice". Which command fits?

You want commits whose message mentions "invoice". Which command fits?

  1. A.git log -S"invoice"
  2. B.git log --grep=invoice
  3. C.git blame invoice
  4. D.git log --author=invoice
Answer & explanation

Correct answer: git log --grep=invoice

--grep searches commit messages; -S searches the code changes.

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 →