🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Searching Git History: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. You want commits whose message mentions "invoice". Which command fits?
  2. Q2. You want to know when the code discount = 0.5 was added to the project. What is the best tool?
  3. Q3. What does git blame app.py show for each line?
  4. Q4. In git log -- README.md, what is the -- for?
  5. Q5. git bisect finds the first bad commit using which idea?
  6. Q6. About how many tests does bisect need to search 1,000 commits?
  7. Q7. When using git bisect run ./check.sh, which exit code tells Git the commit is good?
  8. Q8. What does this print? (code)
  9. Q9. Bisect has finished and printed the first bad commit. What should you run next?
  10. Q10. Why should you run your bisect test script by hand once before git bisect run?