Description : Utilise la recherche binaire pour trouver un commit qui introduit un bug.
Syntaxe : git bisect <subcommande> [<options>]
| Sous-commande | Description | Utilisation principale |
|---|---|---|
git bisect start | Démarre une session de bisect | Début de recherche de bug |
git bisect bad [<commit>] | Marque un commit comme contenant le bug | Indiquer un commit défaillant |
git bisect good [<commit>] | Marque un commit comme ne contenant pas le bug | Indiquer un commit fonctionnel |
git bisect reset | Termine la session et revient à la branche originale | Fin de recherche |
git bisect skip | Ignore le commit courant (non testable) | Passer un commit problématique |
git bisect log | Affiche le journal de la session bisect | Suivi de la recherche |
git bisect replay <file> | Rejoue une session depuis un fichier de log | Répéter une recherche |
git bisect run <cmd> | Automatise le bisect avec une commande de test | Recherche automatisée |