mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
git restore and git restore --staged commands
added git restore commands
This commit is contained in:
1 parent
6fd62b4864
commit
141c5a06ad
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user