Update mastering_git.md

This commit is contained in:
Mirai Kumiko 2025-05-03 12:27:12 +02:00
parent 0072963b21
commit a581dc1d3c
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278

View file

@ -23,7 +23,7 @@ Restore file from specific commit `git restore -s abcd123 file.txt`
## Diff ## Diff
Show the state of a file in a specific commit `git diff abcd123 -- file.c` Show the state of a file in a specific commit `git show abcd123 file.c`
Show the difference between two commits `git diff abcd123..efgh123` Show the difference between two commits `git diff abcd123..efgh123`
@ -120,7 +120,7 @@ And the second one carries out binary search in interactive mode. When you start
You can fully automate this process by passing a script that runs tests and returns 0 in case of success or 1 in error. You can fully automate this process by passing a script that runs tests and returns 0 in case of success or 1 in error.
``` ```
$ git bisect start HEAD v1.0 $ git bisect start HEAD v1.0.0
$ git bisect run test-error.sh $ git bisect run test-error.sh
``` ```