Back to all tips

Git Pro Tips

Git Bisect

🗓️ Published: 4/15/2026 Originally on X: 7/20/2022
Git Bisect

When you need to find the commit that introduced a bug, git bisect can narrow it down quickly:

git bisect start
git bisect bad
git bisect good v2.1.5

After that, test each revision and mark it good or bad until Git identifies the offending commit.

Discuss this tip on