What is git bisect? How can you use it to determine the source of a (regression) bug?
Answer / Sagar Agnihotri
Git Bisect is a command that helps find the commit where a regression was introduced. You start by marking the latest 'good' and 'bad' commits, then Git Bisect automatically checks out intermediate commits and compiles the project to see if it still has the bug. If the bug persists, Git Bisect will continue checking out earlier commits until it finds the commit that introduced the regression.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between rebasing and merge in git?
How to squash or fixup commits?
Explain the uses of git commands?
What is a ‘conflict’ in git?
What is the function of ‘git stash apply’?
What work is restored when the deleted branch is recovered?
What is a commit message?
What are the benefits of using version control system?
How do you find a list of files that have changed in a particular commit?
What is the difference between git pull and git fetch?
What is git bisect? How can you use it to determine the source of a (regression) bug?
Why is it advisable to create an additional commit rather than amending an existing commit?