diff options
Diffstat (limited to 'content/en/blog/mastering_git.md')
-rw-r--r-- | content/en/blog/mastering_git.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/en/blog/mastering_git.md b/content/en/blog/mastering_git.md index 1f26946..d5964c2 100644 --- a/content/en/blog/mastering_git.md +++ b/content/en/blog/mastering_git.md @@ -23,7 +23,7 @@ Restore file from specific commit `git restore -s abcd123 file.txt` ## 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` @@ -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. ``` -$ git bisect start HEAD v1.0 +$ git bisect start HEAD v1.0.0 $ git bisect run test-error.sh ``` |