正在加载视频...
视频加载失败
A DEVELOPER PROVED YOU CAN FIND THE EXACT COMMIT THAT BROKE YOUR CODE IN A HISTORY OF 10,000 -- IN ABOUT 13 STEPS, AUTOMATICALLY.. 33 minutes from a Google engineer on git bisect: the built-in command that binary-searches your entire history to hunt down the one commit that introduced... show more
22 条评论

Will watch this soon, thanks bro

The hard part lies buried in this high promise tweet. Writing tests. Yes, you have to submit the tests to the flow to be able to find the break point. Did you leave out the testing bit for later? Ha ha, this git bisect ain't for you.

guy is speaking at a Google conference - he's clearly someone you can trust

Bold of you to assume our tests are passing

git bisect is legitimately one of those tools that feels like magic once you use it

git bisect is one of those tools way more devs should know tbh

Clear idea

stop guessing and let git find the culprit

binary search cuts ten k down to thirteen most devs still grep the diffs instead

That's impressive! Git bisect is a game changer. It's like detective work for code—solving mysteries one commit at a time!

appreciate the share fam

i don't believe it's that simple and only 13 steps

Git bisect is one of those boring superpowers. Agents get flashier, but a clean binary search through history still feels like cheating in the best way.

The production lifted an already excellent conversation

the honest answer is, we're still in the dark ages when it comes to code reliability and debugging. this just highlights how much work we have to do on making dev tools smarter

Get bisect only works as far back as you can build with your current libraries, build tools, and dependencies. In other words, it only works if the breaking change was very recent. Otherwise, you spend more time restoring packages and trying to get old checkouts to build then it would have taken to find the bug with a compare.

Yes, many people just haven't learned, that's all

i’ve seen coders debug for days not knowing this trick exists git bisect is the quiet cheat code no one talks about but everyone needs

binary search for bugs is simple but ridiculously useful

i used bisect once and it was a lifesaver

more way why it's matter

still going to end up manually checking the last five commits and blaming someone else

