Outils pour utilisateurs

Outils du site


tech:notes_git_bisect

Ceci est une ancienne révision du document !


Notes git bisect

source : https://opensource.com/article/22/11/git-bisect

Using Git bisect Using the git bisect command is very straightforward:

git bisect start
git bisect bad        # Git assumes you mean HEAD by default
git bisect good <ref> # specify a tag or commit ID for <ref>

Git checks out the commit in the middle and waits for you to declare either:

git bisect good
## or
git bisect bad

Then the bisect tool repeats checking out the commit halfway between good and bad commits until you tell it:

git bisect reset

Advanced users can even write scripts that determine good and bad states as well as any remediation actions to take upon finding the specific commit. You might not use the git bisect command every day of your life, but when you need it, it is a lifesaver.

tech/notes_git_bisect.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki