Skip to content

Commit f5f7b6d

Browse files
committed
mermaid
1 parent 2573cd4 commit f5f7b6d

File tree

3 files changed

+579
-342
lines changed

3 files changed

+579
-342
lines changed

docs/document/Skill/Git/docs/4.Git History & Reset.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,30 @@ $ git log master..pwsh_es
3838
3939
## Bisect
4040

41-
`git bisect` is a subcommand to search a target commit by testing *good* or *bad*, which delineated a range of the possible target commit, and you keep half-cut the range by testing *good* or *bad* until you met both *good* which means your found the target.
41+
`git bisect` is a subcommand to search a target commit by testing *good* or *bad*, which delineated a range of the possible target commit, and you keep half-cut the range by testing *good* or *bad* until you met the final commit that's *bad*.
4242

4343
Assuming you have a error one testing introduced at some point but you can't figure out which commit introduced it, but you are dare to stride back to a commit that does not error which can be a start point of *good*.
4444
Correspondingly, the current commit you're on can be the start point of *bad*, that is, the error was introduced between *good* and *bad*.
4545

4646
```mermaid
47+
---
48+
config:
49+
logLevel: 'debug'
50+
theme: 'base'
51+
---
4752
gitGraph
4853
commit
4954
commit
5055
commit
51-
commit id: 'good' tag: 'test passed'
56+
commit tag: 'good' id: 'test passed'
5257
commit
5358
commit
5459
commit
55-
commit tag: 'might be target'
60+
commit tag: 'might be target between'
5661
commit
5762
commit
5863
commit
59-
commit id: 'bad' tag: 'test failed'
64+
commit tag: 'bad' id: 'test failed'
6065
```
6166

6267
1. `git bisect start`: enter *bisect* stage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^20.14.5",
2121
"axios": "^1.7.2",
2222
"jsonc-parser": "^3.2.1",
23-
"mermaid": "^10.9.1",
23+
"mermaid": "11.7.0",
2424
"shiki": "^1.7.0",
2525
"typescript": "^5.6.3",
2626
"vitepress": "latest",

0 commit comments

Comments
 (0)