Comment by yjftsjthsd-h
2 years ago
I don't know about branches, but if you're just traversing history that's a textbook use for git bisect, right?
2 years ago
I don't know about branches, but if you're just traversing history that's a textbook use for git bisect, right?
Yes, failure to rtfa on my part.
Yep. Git bisect automatically does a binary search to find the earliest breaking commit. You can either test each version manually or, if you have a script that will pass or fail, like a unit test, you can tell git and it will do everything automatically. I love it when I get to use git bisect.
A handy trick I've developed is using`git bisect` to solve otherwise intractable rebase conflicts:
https://codeconstruct.com.au/docs/bisect-intractable-rebase-...
You might want to combine this with enabling rerere.
1 reply →