4 ms·
I don't use `reflog` often but I've found that 9/10 times you make a serious mistake in git, it ends up being the go to solution. As for `bisect`, it's magic.
by jacoblambda 6y ago
I don't use `reflog` often but I've found that 9/10 times you make a serious mistake in git, it ends up being the go to solution.
As for `bisect`, it's magic. It is used to binary search git commits back to X point in time. You can use it to manually go through previous commands to find what code/how long ago a bug was introduced. You can also rig it up with a test command (say a unit test that you copy out of the working tree/keep in a separate worktree) and have it automatically sift through the commits and tell you the first point where it starts to fail.