How do you find which commit introduced a bug?

IntermediateConceptGit
Answer

git bisect binary-searches history. git bisect run automates it with a test script.

git bisect start; git bisect bad; git bisect good v1.4.0
git bisect run ./test.sh
All Real-World Interview questions Roadmap: Interview readiness

More on Git