We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

How to Bisect

There are effectively 7 steps to bisecting:

  1. Start the bisect with git bisect start
  2. Select a "good" commit with git bisect good <commitish> (a commit where you're sure the bug wasn't present)
  3. Select a bad commit via git bisect bad <commitish> (a commit where you're sure the bug was present)
  4. Git will checkout a commit between the good and bad commits for you to test to see if the bug is present
  5. Execute git bisect good or git bisect bad to say the current commit is good or bad
  6. Loop back to step 4 (until git bisect completes)
  7. Exit the bisect mode with git bisect reset

Assignment

Your boss just chewed you out because the scan.sh script should never have been added to the repo!

Not only does she want the contents of the script erased, but she wants to know when the script was added, and for you to fix it with a git revert so that the history of your royal screw-up is preserved.

Considering you can't remember when you wrote the script, you decide to use git bisect.

Run and submit the CLI tests from the root of your repo.

If you're interested, the git blame command can be used to see who made the change, not just when it was made.