← Back to registry

Git Bisect Guide

Guides you through git bisect to find which commit introduced a bug

by communityv1.0.00 downloads~ tokens
debugginggit

Install to project

curl -sL https://api.freeskill.cloud/skills/git-bisect/SKILL.md -o .claude/skills/git-bisect/SKILL.md

Add full registry to Claude Code

/plugin marketplace add freeskill/registry

SKILL.md

---
name: Git Bisect Guide
description: Guides you through git bisect to find which commit introduced a bug
tags: [debugging, git]
author: community
version: 1.0.0
---

# Git Bisect Guide

To find the commit that introduced a bug:

```bash
git bisect start
git bisect bad                  # current commit is broken
git bisect good <known-good>    # last known working commit
```

Git will check out a midpoint. Test it, then:
- `git bisect good` — if the bug is absent
- `git bisect bad`  — if the bug is present

Repeat until Git identifies the culprit commit. Then:
```bash
git bisect reset   # return to original HEAD
```

For automated testing: `git bisect run npm test`