From anonymous, 3 Years ago, written in Plain Text.
Embed
  1. florian@ws042:~/tmp/bisect1$ git init
  2. Initialized empty Git repository in /home/florian/tmp/bisect1/.git/
  3.  
  4. florian@ws042:~/tmp/bisect1$ echo 'good and broken' > file
  5. florian@ws042:~/tmp/bisect1$ git add file && git commit -am 'good and broken'
  6. [master (root-commit) 3f4779e] good and broken
  7.  1 file changed, 1 insertion(+)
  8.  create mode 100644 file
  9.  
  10. florian@ws042:~/tmp/bisect1$ echo 'again' >> file && git commit -am 'still good and broken'
  11. [master eab0eff] still good and broken
  12.  1 file changed, 1 insertion(+)
  13.  
  14. florian@ws042:~/tmp/bisect1$ echo 'bad and broken' > file && git commit -am 'bad and broken'
  15. [master f38faca] bad and broken
  16.  1 file changed, 1 insertion(+), 2 deletions(-)
  17.  
  18. florian@ws042:~/tmp/bisect1$ echo 'bad and fixed' > file && git commit -am 'bad and fixed'
  19. [master 50422d1] bad and fixed
  20.  1 file changed, 1 insertion(+), 1 deletion(-)
  21.  
  22.  
  23. florian@ws042:~/tmp/bisect1$ git --no-pager log --oneline --decorate
  24. 50422d1 (HEAD, master) bad and fixed
  25. f38faca bad and broken
  26. eab0eff still good and broken
  27. 3f4779e good and broken
  28.  
  29. florian@ws042:~/tmp/bisect1$ git bisect start
  30. florian@ws042:~/tmp/bisect1$ git bisect bad master
  31. florian@ws042:~/tmp/bisect1$ git bisect good 3f4779e
  32. Bisecting: 0 revisions left to test after this (roughly 1 step)
  33. [f38faca02cb777c0797e8ebc11a639f0254ae8d7] bad and broken
  34.  
  35. florian@ws042:~/tmp/bisect1$ git cherry-pick 50422d1
  36. [detached HEAD 6a77f9a] bad and fixed
  37.  Date: Mon Dec 14 17:05:05 2015 +0100
  38.  1 file changed, 1 insertion(+), 1 deletion(-)
  39.  
  40. florian@ws042:~/tmp/bisect1$ git bisect bad
  41. Bisecting: 0 revisions left to test after this (roughly 1 step)
  42. [f38faca02cb777c0797e8ebc11a639f0254ae8d7] bad and broken