#0196 · 方法
二分法揪出坏提交
已知 [好版本] 能用、[坏版本] 坏了。请用 git bisect 帮我定位:
1. 给出开始的命令;
2. 写一个能自动判断好坏的检查脚本,用 git bisect run 跑;
3. 说明脚本的退出码约定(0 好,1 坏,125 跳过);
4. 找到后,解释这个提交为什么会引起问题。
[good version] works and [bad version] is broken. Help me find the culprit with git bisect:
1. Give the starting commands.
2. Write a check script that decides good or bad on its own, and run it with git bisect run.
3. Explain the exit-code convention (0 good, 1 bad, 125 skip).
4. Once found, explain why that commit causes the problem.
小杜
已贴 1,040 张上墙共收到 0 个章