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 |
How to revert previous commit in git?
Name a few git commands and explain their usage.
What is the function of ‘git rm’?
Mention the various git repository hosting functions.
What work is restored when the deleted branch is recovered?
Explain git stash, pop?
How will you know in git if a branch has already been merged into master?
What is ‘bare repository’ in GIT?
What does a commit object contain?
How to remove a file from git without removing it from your file system?
What are git stash and git stash drop?
What is Subgit? Why to use Subgit?