Git-Logo-1788C

Help you finding bugs in commits

 

We have a template

git-bisect-1

Then, change the style of header to create a fake error commit

git-bisect-2

The result after change style

git-bisect-3

Commit the changes

git-bisect-4

Now we have a fake error commit

git-bisect-5

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)

git-bisect-6

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

git-bisect-1

git-bisect-7

In next commit, you see it’s error, then you type git bisect bad

git-bisect-3

Then you will have a result of commits that have this error. Type git bisect reset to back to currently working brand.

git-bisect-8

Follow Shaumik Daityari

Git Bisect

Category: LinuxOperating SystemWindow
0
884 views

Join the discussion

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.