← 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?
- A.git log -S"invoice"
- B.git log --grep=invoice
- C.git blame invoice
- 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 →