From a581dc1d3c14428cb60c9838626788fcb68a208f Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Sat, 3 May 2025 12:27:12 +0200 Subject: Update mastering_git.md --- content/en/blog/mastering_git.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content') 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 ``` -- cgit v1.2.3