Help you finding bugs in commits
git bisect start git bisect good <hash commit> git bisect bad <hash commit> git bisect good git bisect bad git bisect reset
We have a template
Then, change the style of header to create a fake error commit
The result after change style
Commit the changes
Now we have a fake error commit
Run command: git bisect start
Run command: git bisect good <hash commit> (you think it’s still good from this commit – Bisect from this commit)
Run command: git bisect bad <hash commit> (the commit that you see the error – Bisect to this commit)
It’s will bring you through commits between the commits you set good, bad before
Go to the webpage, refresh the page you see it’s good, then type git bisect good
In next commit, you see it’s error, then you type git bisect bad
Then you will have a result of commits that have this error. Type git bisect reset to back to currently working brand.
Follow Shaumik Daityari