How to Start a Git Bisect Session?

0 votes
by (120 points)
What is the procedure to carry out a git bisect operation with the aim of locating a specific bug?

1 Answer

0 votes
by (260 points)
In order to enter the Git Bisect session, one must consummate the following: First, execute ‘git bisect start’ command. Then this step is followed by ‘git bisect bad’ statement which marks the known bad state, which will be the current HEAD unless a commit is specified. Then, you will ‘git bisect good’ with a reference to a bad state you have marked previously and provide it with the sha of a commit you know is good. It will then check out a commit which is in between the good and the bad state for you to test out. You continuously forward each state with either good or bad until Git Bisect is able to find out the commit that caused the bug. Now you can end the bisect session by executing ‘git bisect reset’ command which will return you to the normal working state.
Welcome to Akaguide Q&A, where you can ask questions and receive answers from other members of the community.
...