These tips and techniques by James Turnbull will help you to avoid potential source control pitfalls and make your development workflow bit smoother.
Tip # 6: I am bisect and so can you
git bisectis one of the most powerful, seemingly magical, code-based debugging tools available to you. It can be used when you discover a bug you can’t trace to a specific piece of code. A
git bisectruns a binary search between two commits: a good commit where the bug wasn’t present and a bad commit where the bug appears.
$ git bisect start $ git bisect bad # Current version is bad $ git bisect good v2.6.13-rc2 # v2.6.13-rc2 is known to be good