This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git bisect start | |
git bisect bad | |
git bisect good commithashxxxxx | |
Git bisect will use the divide and conquer (binary search) strategy to speed up finding where a bug was introduced into the code. | |
IMPORTANT NOTE! It’s easy to mix up GOOD and BAD. | |
I realized that one of my unit/integration tests was faulty. My authentication system was redirecting to the wrong URL. However, this had been going on for a while. Users had been clicking the homepage icon to work around the problem. I needed a fast way to find when the bug was introduced. So I asked on the Python Slack group even though this happened on my Rails stack. XXXXX gave me this excellent solution. XXXX said that the solution came to him from reading the Pro Git book cover to cover. |