News for hackers. Stuff that matters.
Re:Git is too hard by jacoblambda on Tuesday November 17, 2020 @04:21PM (#25130010)
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.

There are no comments on this comment yet.