1. Learn
  2. /
  3. Courses
  4. /
  5. Advanced Git

Connected

Exercise

Bisect Search

You've discovered that your ETL pipeline is producing incorrect results, but you're not sure when this bug was introduced. You need to use git bisect to find the commit that introduced the bug. Assume you have begun the git bisection process by initializing git bisect.

You've written a script ./test_etl.sh that can automatically detect if the bug is present.

Instructions 1/3

undefined XP
  • 1

    Run git bisect with your automated test script ./test_etl.sh to automatically detect whether the bug exists in the returned commit.

  • 2

    Git has found the first bad commit. Use git log to view the bad commit which will be the first commit in the log. Use the :q to exit the log once done.

  • 3

    Now that you've found the commit. Return to the current HEAD and ending the git bisection process by reseting to HEAD.