What is git bisect? How can you use it to determine the source of a (regression) bug?



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

Post New Answer

More Git Interview Questions

How to revert previous commit in git?

1 Answers  


Name a few git commands and explain their usage.

1 Answers  


What is the function of ‘git rm’?

1 Answers  


Mention the various git repository hosting functions.

1 Answers  


What work is restored when the deleted branch is recovered?

1 Answers  


Explain git stash, pop?

1 Answers  


How will you know in git if a branch has already been merged into master?

1 Answers  


What is ‘bare repository’ in GIT?

1 Answers  


What does a commit object contain?

1 Answers  


How to remove a file from git without removing it from your file system?

1 Answers  


What are git stash and git stash drop?

1 Answers  


What is Subgit? Why to use Subgit?

1 Answers  


Categories