Update mastering_git.md
This commit is contained in:
parent
0072963b21
commit
a581dc1d3c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue