Merge pull request #395 from unreal0901/patch-3

git restore and git restore --staged command
This commit is contained in:
Fechin authored and GitHub committed 2023-02-20 13:42:50 +08:00
commit 8e22a2a9bc
1 file changed
+8
+8
View File
@@ -59,6 +59,14 @@ Commit all your tracked files to versioned history
``` shell script
$ git commit -am "commit message"
```
Discard changes in working directory which is not staged
``` shell script
$ git restore [file]
```
Unstage a stagged file or file which is staged
``` shell script
$ git restore --staged [file]
```
Unstages file, keeping the file changes
``` shell script