mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-24 16:20:08 +01:00
bisect: level description clarification
This commit is contained in:
parent
5df4932ad5
commit
c52c742b2d
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ Oh no! You have lost your key at some point during the day!
|
||||||
|
|
||||||
Sure, you could look at every single commit in an attempt to find it - but there's a better way: your time machine has a built-in way to find the point in time where things went wrong quickly!
|
Sure, you could look at every single commit in an attempt to find it - but there's a better way: your time machine has a built-in way to find the point in time where things went wrong quickly!
|
||||||
|
|
||||||
First, play the "bisect start" card. Then, go to a commit where you don't have the key, and play the "bisect bad" card. Likewise, go to a commit early on where you have the key, and play the "bisect good card".
|
First, play the "bisect start" card. Then, go to a commit where you don't have the key, and play the "bisect bad" card. Likewise, go to a commit early on where you have the key *in your pocket*, and play the "bisect good card".
|
||||||
|
|
||||||
After you've found the last good commit, reset the main branch to it. What happened to the key after you lost it?
|
After you've found the last good commit, reset the main branch to it. What happened to the key after you lost it?
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ done
|
||||||
|
|
||||||
[win]
|
[win]
|
||||||
|
|
||||||
|
# Find the last good commit
|
||||||
test "$(git log --pretty=%s main | head -1)" -eq 17
|
test "$(git log --pretty=%s main | head -1)" -eq 17
|
||||||
|
|
||||||
[congrats]
|
[congrats]
|
||||||
|
|
Loading…
Reference in a new issue