| Start |
|---|
| Binary search (git bisect)
Start by bisecting a session by providing two commit references: a good commit before the bug, and a bad commit after the bug. Generally, the bad commit is
Afterwards remember to run If you have a script that can check for the bug, you can automate the process with: Where Running this command will automatically run through the binary search, executing |
| Semi-automatically find a faulty commit Imagine you are on the Git has help for you, finding the faulty commit which introduced the regression with a very low number of steps (binary search). First of all start bisecting: This will tell git that Git will now check out a detached head in the middle of both commits. Now, you can do your testing. Depending on whether it works or not issue or . In case this commit cannot be tested, you can easily After a few steps git will output the faulty commit hash. In order to abort the bisect process just issue and git will restore the previous state. Syntax |
Read Article
https://develop.horje.com/learn/1434/reference