docs: fix a number of typos in git.md post

This commit is contained in:
Henry Mai committed 2023-05-26 15:22:21 +09:30
1 parent 3fb436e3d2
commit 3dd1b27879
1 file changed
+5 -5
+5 -5
View File
@@ -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
```