From 3dd1b2787988c71cb8a375c1f496004e5a3979eb Mon Sep 17 00:00:00 2001 From: Henry Mai Date: Fri, 26 May 2023 15:22:21 +0930 Subject: [PATCH] docs: fix a number of typos in git.md post --- source/_posts/git.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_posts/git.md b/source/_posts/git.md index c8e8ad7..7af12a0 100644 --- a/source/_posts/git.md +++ b/source/_posts/git.md @@ -52,12 +52,12 @@ Stage all changed files, ready for commit $ git add . ``` -Commit all staged files to versioned history +Commit all staged files to version history ``` shell script $ git commit -m "commit message" ``` -Commit all your tracked files to versioned history +Commit all your tracked files to version history ``` shell script $ git commit -am "commit message" ``` @@ -65,12 +65,12 @@ Discard changes in working directory which is not staged ``` shell script $ git restore [file] ``` -Unstage a stagged file or file which is staged +Unstage a staged file or file which is staged ``` shell script $ git restore --staged [file] ``` -Unstages file, keeping the file changes +Unstage a file, keeping the file changes ``` shell script $ git reset [file] ``` @@ -85,7 +85,7 @@ Diff of what is changed but not staged $ git diff ``` -Diff of what is staged but not yet commited +Diff of what is staged but not yet committed ``` shell script $ git diff --staged ```