我正在进行git bisect,到目前为止已经找到了一些好的和坏的提交,可以通过运行git bisect log
来确认。
然而,如果我运行我的分支的git log git log --graph --decorate=full origin/master..mybranch
,我可以看到它显示某个提交是origin/mybranch和mybranch,另一个我当前检出的是(HEAD),但它不会用任何东西显示“好”的或“坏”的提交。
我的git版本是“git version 2.40.0.windows.1”。
这里使用了一个公开可用的git repo进行复制。
git clone https://github.com/agrimm/zombie-chaser.git
cd zombie-chaser
git bisect start
git bisect bad d27ec73cf2f1df89cbccd41494f579e066bad6fe
git bisect good 3a99fd1ee5a20aa18e5202e9a8c3ee0ba04a740e
git log --graph --decorate=full master
* commit d27ec73cf2f1df89cbccd41494f579e066bad6fe (refs/remotes/origin/master, refs/remotes/origin/HEAD, refs/heads/master)
| Date: Mon Apr 12 23:24:20 2010 +1000
|
| Fixed typos, updated home page URL.
|
* commit ae1c1d263168cf123578ff5d50f4fc7eb9726a52 (HEAD)
| Date: Sun Apr 11 22:17:39 2010 +1000
|
| Bump up to version 0.1.0.
|
* commit 2a1e2a6c7d2b7036a36c291cc220cbc486815aa8
| Date: Sun Apr 11 19:19:27 2010 +1000
|
| Move library files and ui files into a lib subdirectory, and other changes to file loading.
|
* commit 3a99fd1ee5a20aa18e5202e9a8c3ee0ba04a740e
| Date: Sun Apr 11 12:28:10 2010 +1000
|
| Removed gosu as a dependency, to satisfy jruby.
运行 git bisect log:
$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [d27ec73cf2f1df89cbccd41494f579e066bad6fe] Fixed typos, updated home page URL.
git bisect bad d27ec73cf2f1df89cbccd41494f579e066bad6fe
# status: waiting for good commit(s), bad commit known
# good: [3a99fd1ee5a20aa18e5202e9a8c3ee0ba04a740e] Removed gosu as a dependency, to satisfy jruby.
git bisect good 3a99fd1ee5a20aa18e5202e9a8c3ee0ba04a740e
我期望得到的是在某些提交之后看到一些“好”的或“坏”的文本,但实际上我什么也没有得到。
git log --oneline --graph --glob=refs/bisect/bad* --not --glob=refs/bisect/good*
(或新/旧或您使用的任何术语代替坏/好)可能非常有用。 - jthill