Using git bisect to quickly find the origin of a bug

preview_player
Показать описание
git bisect is a really useful command for locating the origin commit of a bug or behavior. While surfing twitter I found a thread talking about bisecting in general and learned of the command and since then I've used it multiple times on the job to locate pesky bugs. I created a repository, blog post, and now a video to help spread the word about this mysterious little command.

00:00 - Intro
00:54 - Repository
01:10 - Tweets
04:03 - Overview of the repo code
06:02 - Running the code and test
08:55 - git bisect
13:00 - git bisect run script
15:08 - Adding a retroactive test
19:04 - Wrap-up

Sibling blog post for this video:

Github repo for practicing bisect:

Original tweets about bisecting:

Follow Jimmy Cleveland's doings:

#git #gitbisect
Рекомендации по теме
Комментарии
Автор

I call the Napoleon technique (or Cesar technique) _divide et impera_, cool we have it in git

lcoronelp