Learn how to use the Git Bisect Tool to find and fix bugs in your codebase.
The Git Bisect Tool helps you identify the exact commit that introduced a bug by automatically testing commits in your git history using binary search. Instead of manually checking each commit, the tool guides you through the process and can even generate fixes automatically.
Click "Start Bisect" and enter either a GitHub or GitLab repository URL, or a local file path to your repository.
You need to know two commits:
Commit hashes can be found in your git log or on GitHub/GitLab.
The tool will show you a commit to test:
The tool automatically picks the next commit to test. Repeat until it finds the bug.
Once the bug-introducing commit is found, you can use AI to automatically generate a fix and create a pull request.
Before manually testing commits, let AI analyze all the commits and tell you which ones are most likely to have caused the bug.
How it works:
After finding the bug-introducing commit, the AI can automatically create a fix and open a pull request.
How it works:
You can always review and modify the fix before merging.
When the tool shows you a commit to test, you need to run your app at that commit and check if the bug is present.
Click the "Launch App" button and the tool will:
The tool automatically detects if you use npm, yarn, or pnpm.
If your app needs environment variables (like API keys or database URLs), you can configure them:
KEY=valueTry these steps:
Make sure you:
Check that: