You are here

Finding bugs with git bisect

I was looking around on stackexchange trying to figure out how to roll back some changes temporarily to see where this bug I have started. It is easy enough to just use git checkout and then see if it is fixed but when it goes back a ways, you could be checking out several old commits.

This post on stackexchange talks about a way (in the accepted answer) to go back and then find yourself back at the tip of your working branch (with git checkout master). Then the author notes that you should know about git bisect which is actually a better way to do this.

Here is a link.