Git 二分查找 引入 bug 的 commit

git bisect start

当前 commit 包含 bug

git bisect bad

找到不含 bug 的 commit

git bisect good xxx

会自动回滚到中间的 commit

如果还有 bug

git bisect bad

如果没有 bug

git bisect good

结束查找

git bisect reset
posted @ 2023-07-21 13:59  consolexinhun  阅读(9)  评论(0编辑  收藏  举报