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