Created
March 3, 2020 03:00
-
-
Save zengkan0703/1e8fa9bd99755bd7bc04e4e50c1bc4a5 to your computer and use it in GitHub Desktop.
git 二分查找问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git bisect start // 开始二分法查找 | |
git bisect reset // 退出二分查找 | |
git bisect good [good_commit] // 已知的最后一次正常状态 | |
git bisect bad // 表示当前是有问题的 | |
之后 git 就会自动切换到 [good_commit] 和 HEAD 中间的那次 commit, | |
我们再根据代码当前的状态标记 git bisect bad|good,往复几次之后,就能找到引起问题的提交 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment